From 082aa8b96743c60720f2f1fb27230049bc0dd856 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 16:57:12 +0200 Subject: [PATCH] Fix typo --- src/controllers/SettingsController.ts | 4 ++-- src/entities/CustomEmoji.ts | 4 ++-- src/helpers/CustomEmojisHelper.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/SettingsController.ts b/src/controllers/SettingsController.ts index 35c2a33..956a88a 100644 --- a/src/controllers/SettingsController.ts +++ b/src/controllers/SettingsController.ts @@ -282,7 +282,7 @@ export class SettingsController { const emojiID = await CustomEmojisHelper.Insert(new CustomEmoji({ id: -1, userID: h.getUserId(), - shorcut: shortcut, + shortcut: shortcut, path: path })) @@ -314,7 +314,7 @@ export class SettingsController { return { id: c.id, userID: c.userID, - shorcut: c.shorcut, + shorcut: c.shortcut, url: c.url } } diff --git a/src/entities/CustomEmoji.ts b/src/entities/CustomEmoji.ts index 5bc883e..aa4d06f 100644 --- a/src/entities/CustomEmoji.ts +++ b/src/entities/CustomEmoji.ts @@ -9,14 +9,14 @@ import { pathUserData } from "../utils/UserDataUtils"; export interface CustomEmojiBuilder { id: number, userID: number, - shorcut: string, + shortcut: string, path: string, } export class CustomEmoji implements CustomEmojiBuilder { id: number; userID: number; - shorcut: string; + shortcut: string; path: string; public constructor(info: CustomEmojiBuilder) { diff --git a/src/helpers/CustomEmojisHelper.ts b/src/helpers/CustomEmojisHelper.ts index 675e1c8..f8f6916 100644 --- a/src/helpers/CustomEmojisHelper.ts +++ b/src/helpers/CustomEmojisHelper.ts @@ -23,7 +23,7 @@ export class CustomEmojisHelper { EMOJIS_TABLE, { user_id: e.userID, - shortcut: e.shorcut, + shortcut: e.shortcut, path: e.path } ) @@ -116,7 +116,7 @@ export class CustomEmojisHelper { return new CustomEmoji({ id: row.id, userID: row.user_id, - shorcut: row.shortcut, + shortcut: row.shortcut, path: row.path }) }