mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-03 09:44:33 +00:00
Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/45 Reviewed-by: zima <zima@noreply.codeberg.org> Co-authored-by: HellhoundSoftware <keith@keithhacks.cyou> Co-committed-by: HellhoundSoftware <keith@keithhacks.cyou>
This commit is contained in:
parent
4bfe849810
commit
cbd0bde157
1 changed files with 5 additions and 1 deletions
|
@ -96,10 +96,14 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
emojiId = emoji.id;
|
emojiId = emoji.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let categoryNfc: string|null|undefined = ps.category?.normalize('NFC');
|
||||||
|
// stop ?. from turning a null into an undefined
|
||||||
|
if (ps.category === null) categoryNfc = null;
|
||||||
|
|
||||||
await this.customEmojiService.update(emojiId, {
|
await this.customEmojiService.update(emojiId, {
|
||||||
driveFile,
|
driveFile,
|
||||||
name: nameNfc,
|
name: nameNfc,
|
||||||
category: ps.category?.normalize('NFC'),
|
category: categoryNfc,
|
||||||
aliases: ps.aliases?.map(a => a.normalize('NFC')),
|
aliases: ps.aliases?.map(a => a.normalize('NFC')),
|
||||||
license: ps.license,
|
license: ps.license,
|
||||||
isSensitive: ps.isSensitive,
|
isSensitive: ps.isSensitive,
|
||||||
|
|
Loading…
Add table
Reference in a new issue