1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +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({
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
}
}

View File

@ -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) {

View File

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