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 }) }