1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Merge branch 'spacebarchat:master' into master

This commit is contained in:
Cyber 2023-05-13 10:48:42 +02:00 committed by GitHub
commit 654403a8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@
import { route } from "@spacebar/api";
import {
DiscordApiErrors,
emitEvent,
getPermission,
Guild,
@ -75,6 +76,8 @@ router.post(
},
}),
async (req: Request, res: Response) => {
if (req.user_bot) throw DiscordApiErrors.BOT_PROHIBITED_ENDPOINT;
const { code } = req.params;
const { guild_id } = await Invite.findOneOrFail({
where: { code: code },