diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-06 18:25:30 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | cba3844c6f7a6b26c93d8061da0ca7fe6b291e92 (patch) | |
tree | 515a4000f4d26ab1999644b9dd6a057e03041bcf /api/src/routes/guilds/#guild_id/index.ts | |
parent | migrate to DataSource (diff) | |
download | server-cba3844c6f7a6b26c93d8061da0ca7fe6b291e92.tar.xz |
Resolve changes undone by rebasing from master
Diffstat (limited to 'api/src/routes/guilds/#guild_id/index.ts')
-rw-r--r-- | api/src/routes/guilds/#guild_id/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/guilds/#guild_id/index.ts b/api/src/routes/guilds/#guild_id/index.ts index d9c8f13b..2d748d61 100644 --- a/api/src/routes/guilds/#guild_id/index.ts +++ b/api/src/routes/guilds/#guild_id/index.ts @@ -26,8 +26,8 @@ router.get("/", route({}), async (req: Request, res: Response) => { const { guild_id } = req.params; const [guild, member] = await Promise.all([ - Guild.findOneOrFail({ id: guild_id }), - Member.findOne({ guild_id: guild_id, id: req.user_id }) + Guild.findOneOrFail({ where: { id: guild_id } }), + Member.findOne({ where: { guild_id, id: req.user_id } }) ]); if (!member) throw new HTTPError("You are not a member of the guild you are trying to access", 401); |