fix type in emoji/copy endpoint

this is also fixed in the `future` branch
This commit is contained in:
dakkar 2024-05-31 14:03:25 +01:00
parent cea0811ca6
commit fae32f2a77
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const addedEmoji = await this.customEmojiService.add({ const addedEmoji = await this.customEmojiService.add({
driveFile, driveFile,
name: nameNfc, name: nameNfc,
category: emoji.category?.normalize('NFC'), category: emoji.category?.normalize('NFC') ?? null,
aliases: emoji.aliases?.map(a => a.normalize('NFC')), aliases: emoji.aliases?.map(a => a.normalize('NFC')),
host: null, host: null,
license: emoji.license, license: emoji.license,