mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-28 23:02:51 +00:00
Oop, deprecated typeorm call
This commit is contained in:
1 file changed
+1
-1
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user