1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-21 21:09:22 +00:00
This commit is contained in:
Pierre HUBERT 2020-04-29 16:56:05 +02:00
parent b1ef2d9f91
commit 358e9fd38e

View File

@ -35,14 +35,14 @@ export class CustomEmojisHelper {
* the same shortcut
*
* @param userID Target user ID
* @param shorcut The name of the shortcut to check
* @param shortcut The name of the shortcut to check
*/
public static async HasUserSimilarShortcut(userID: number, shorcut: string) : Promise<boolean> {
public static async HasUserSimilarShortcut(userID: number, shortcut: string) : Promise<boolean> {
return await DatabaseHelper.Count({
table: EMOJIS_TABLE,
where: {
user_id: userID,
shortcut: shorcut
shortcut: shortcut
}
}) > 0;
}