diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index 523dcc5..24ba33e 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -269,10 +269,10 @@ export class SettingsController { * @param h Request handler */ public static async UploadCustomEmoji(h: RequestHandler) { - const shorcut = h.postEmojiShorcut("shortcut"); + const shortcut = h.postEmojiShorcut("shortcut"); // Check if the user has already a shortcut with the same name - if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shorcut)) + if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut)) h.error(401, "A custom emoji with the same shortcut is already defined!") @@ -282,7 +282,7 @@ export class SettingsController { const emojiID = await CustomEmojisHelper.Insert(new CustomEmoji({ id: -1, userID: h.getUserId(), - shorcut: shorcut, + shorcut: shortcut, path: path }))