mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-21 21:09:22 +00:00
Fix typo
This commit is contained in:
parent
aabf47fea4
commit
550b932919
@ -269,10 +269,10 @@ export class SettingsController {
|
||||
* @param h Request handler
|
||||
*/
|
||||
public static async UploadCustomEmoji(h: RequestHandler) {
|
||||
const shorcut = h.postEmojiShorcut("shortcut");
|
||||
const shortcut = h.postEmojiShorcut("shortcut");
|
||||
|
||||
// Check if the user has already a shortcut with the same name
|
||||
if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shorcut))
|
||||
if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut))
|
||||
h.error(401, "A custom emoji with the same shortcut is already defined!")
|
||||
|
||||
|
||||
@ -282,7 +282,7 @@ export class SettingsController {
|
||||
const emojiID = await CustomEmojisHelper.Insert(new CustomEmoji({
|
||||
id: -1,
|
||||
userID: h.getUserId(),
|
||||
shorcut: shorcut,
|
||||
shorcut: shortcut,
|
||||
path: path
|
||||
}))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user