From bae4751a57af65990359fd297258441e242f91ca Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 16:51:32 +0200 Subject: [PATCH] Fix typo --- src/controllers/SettingsController.ts | 2 +- src/helpers/CustomEmojisHelper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index a0302b3..35c2a33 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -272,7 +272,7 @@ export class SettingsController { const shortcut = h.postEmojiShortcut("shortcut"); // Check if the user has already a shortcut with the same name - if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut)) + if(await CustomEmojisHelper.HasUserSimilarShortcut(h.getUserId(), shortcut)) h.error(401, "A custom emoji with the same shortcut is already defined!") diff --git a/src/helpers/CustomEmojisHelper.ts b/src/helpers/CustomEmojisHelper.ts index 36e997a..e58279d 100644 --- a/src/helpers/CustomEmojisHelper.ts +++ b/src/helpers/CustomEmojisHelper.ts @@ -37,7 +37,7 @@ export class CustomEmojisHelper { * @param userID Target user ID * @param shorcut The name of the shortcut to check */ - public static async HasUserSimilarShorcut(userID: number, shorcut: string) : Promise { + public static async HasUserSimilarShortcut(userID: number, shorcut: string) : Promise { return await DatabaseHelper.Count({ table: EMOJIS_TABLE, where: {