mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Fix typo
This commit is contained in:
parent
4282346881
commit
bae4751a57
@ -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!")
|
||||
|
||||
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user