Oop, deprecated typeorm call

This commit is contained in:
TheArcaneBrony committed 2022-08-27 04:22:15 +02:00
1 parent 2a559166bb
commit 40b41d3ea3
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }),
const guild_member =
guild_id && typeof guild_id == "string"
? await Member.findOneOrFail({ id: req.params.id, guild_id: guild_id }, { relations: ["roles"] })
? await Member.findOneOrFail({ where: { id: req.params.id, guild_id: guild_id }, relations: ["roles"] })
: undefined;
// TODO: make proper DTO's in util?