fix(api): 🐛 Fix incorrect content_type when uploading and converting emojis

This commit is contained in:
Jesse Wierzbinski 2024-05-12 16:30:26 -10:00
parent 4f070c9b65
commit 7846a03bcf
No known key found for this signature in database
4 changed files with 6 additions and 4 deletions

View file

@ -121,7 +121,7 @@ export default class EmojiAdd extends BaseCommand<typeof EmojiAdd> {
shortcode: args.shortcode,
url: getUrl(uploaded.path, config),
visibleInPicker: true,
contentType: file.type,
contentType: uploaded.uploadedFile.type,
})
.returning();

View file

@ -218,7 +218,7 @@ export default class EmojiImport extends BaseCommand<typeof EmojiImport> {
shortcode: emoji.emoji.name,
url: getUrl(uploaded.path, config),
visibleInPicker: true,
contentType: file.type,
contentType: uploaded.uploadedFile.type,
})
.execute();