1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

(api): fix some issues

This commit is contained in:
Lobo Metalúrgico 2021-10-09 11:43:27 -03:00
parent 4e684e2cd4
commit bfd7445978
No known key found for this signature in database
GPG Key ID: 96090EACD2C96159

View File

@ -10,7 +10,6 @@ import {
Snowflake, Snowflake,
User User
} from "@fosscord/util"; } from "@fosscord/util";
import { HTTPError } from "lambert-server";
import { route } from "@fosscord/api"; import { route } from "@fosscord/api";
const router = Router(); const router = Router();
@ -108,7 +107,7 @@ router.patch("/:emoji_id", route({ body: "EmojiModifySchema", permission: "MANAG
emojis: await Emoji.find({ guild_id: guild_id }) emojis: await Emoji.find({ guild_id: guild_id })
} }
} as GuildEmojiUpdateEvent) } as GuildEmojiUpdateEvent)
]) ]);
return res.json(emoji); return res.json(emoji);
}); });