From 4282346881e81cabb85ed8453d30249c29f90918 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 16:50:27 +0200 Subject: [PATCH] Fix typo --- src/controllers/SettingsController.ts | 2 +- src/entities/BaseRequestsHandler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index 24ba33e..a0302b3 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -269,7 +269,7 @@ export class SettingsController { * @param h Request handler */ public static async UploadCustomEmoji(h: RequestHandler) { - const shortcut = h.postEmojiShorcut("shortcut"); + const shortcut = h.postEmojiShortcut("shortcut"); // Check if the user has already a shortcut with the same name if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut)) diff --git a/src/entities/BaseRequestsHandler.ts b/src/entities/BaseRequestsHandler.ts index e8921dd..5f8fdd9 100644 --- a/src/entities/BaseRequestsHandler.ts +++ b/src/entities/BaseRequestsHandler.ts @@ -414,7 +414,7 @@ export abstract class BaseRequestsHandler implements AbstractUserConnectionConta * * @param name The name of the POST field containing the id of the emoji */ - public postEmojiShorcut(name: string) : string { + public postEmojiShortcut(name: string) : string { const emojiShorcut = this.postString(name); if(!checkEmojiCode(emojiShorcut))