diff options
author | Kuna <65683493+Thesourtimes@users.noreply.github.com> | 2021-12-07 19:40:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 19:40:09 +0300 |
commit | 349229c1b9141e8e50ba122f73ff37264e22d252 (patch) | |
tree | 921ec4b3e3f58aa3ab76a92b85515ae01a1e59b1 /api/src/routes | |
parent | Update index.ts (diff) | |
download | server-349229c1b9141e8e50ba122f73ff37264e22d252.tar.xz |
Update index.ts
Diffstat (limited to 'api/src/routes')
-rw-r--r-- | api/src/routes/invites/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/invites/index.ts b/api/src/routes/invites/index.ts index a237ea90..a2cf4cb5 100644 --- a/api/src/routes/invites/index.ts +++ b/api/src/routes/invites/index.ts @@ -15,7 +15,7 @@ router.get("/:code", route({}), async (req: Request, res: Response) => { router.post("/:code", route({}), async (req: Request, res: Response) => { const { code } = req.params; - const { guild_id } = await Invite.findOneOrFail({ code }) + const { guild_id } = await Invite.findOneOrFail({ code }) const { features } = await Guild.findOneOrFail({ id: guild_id}); const { public_flags } = await User.findOneOrFail({ id: req.user_id }); |