mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Fix typo
This commit is contained in:
parent
b1ef2d9f91
commit
358e9fd38e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user