1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-24 22:39:21 +00:00
This commit is contained in:
Pierre HUBERT 2020-04-29 16:57:12 +02:00
parent 358e9fd38e
commit 082aa8b967
3 changed files with 6 additions and 6 deletions

View File

@ -282,7 +282,7 @@ export class SettingsController {
const emojiID = await CustomEmojisHelper.Insert(new CustomEmoji({ const emojiID = await CustomEmojisHelper.Insert(new CustomEmoji({
id: -1, id: -1,
userID: h.getUserId(), userID: h.getUserId(),
shorcut: shortcut, shortcut: shortcut,
path: path path: path
})) }))
@ -314,7 +314,7 @@ export class SettingsController {
return { return {
id: c.id, id: c.id,
userID: c.userID, userID: c.userID,
shorcut: c.shorcut, shorcut: c.shortcut,
url: c.url url: c.url
} }
} }

View File

@ -9,14 +9,14 @@ import { pathUserData } from "../utils/UserDataUtils";
export interface CustomEmojiBuilder { export interface CustomEmojiBuilder {
id: number, id: number,
userID: number, userID: number,
shorcut: string, shortcut: string,
path: string, path: string,
} }
export class CustomEmoji implements CustomEmojiBuilder { export class CustomEmoji implements CustomEmojiBuilder {
id: number; id: number;
userID: number; userID: number;
shorcut: string; shortcut: string;
path: string; path: string;
public constructor(info: CustomEmojiBuilder) { public constructor(info: CustomEmojiBuilder) {

View File

@ -23,7 +23,7 @@ export class CustomEmojisHelper {
EMOJIS_TABLE, EMOJIS_TABLE,
{ {
user_id: e.userID, user_id: e.userID,
shortcut: e.shorcut, shortcut: e.shortcut,
path: e.path path: e.path
} }
) )
@ -116,7 +116,7 @@ export class CustomEmojisHelper {
return new CustomEmoji({ return new CustomEmoji({
id: row.id, id: row.id,
userID: row.user_id, userID: row.user_id,
shorcut: row.shortcut, shortcut: row.shortcut,
path: row.path path: row.path
}) })
} }