1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-26 13:38:52 +00:00
This commit is contained in:
Pierre HUBERT 2020-04-29 16:51:32 +02:00
parent 4282346881
commit bae4751a57
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ export class SettingsController {
const shortcut = h.postEmojiShortcut("shortcut");
// Check if the user has already a shortcut with the same name
if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut))
if(await CustomEmojisHelper.HasUserSimilarShortcut(h.getUserId(), shortcut))
h.error(401, "A custom emoji with the same shortcut is already defined!")

View File

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