fix type in emoji/copy endpoint
this is also fixed in the `future` branch
This commit is contained in:
parent
cea0811ca6
commit
fae32f2a77
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue