summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 04:22:15 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-27 04:22:15 +0200
commit40b41d3ea387e11b0e0838996c4540829a2a6407 (patch)
treed4e316195783fb55333e4322b98983e60aeb36f4
parentMerge remote-tracking branch 'upstream/dev/staging_2' into staging (diff)
downloadserver-40b41d3ea387e11b0e0838996c4540829a2a6407.tar.xz
Oop, deprecated typeorm call
-rw-r--r--src/api/routes/users/#id/profile.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts
index fa1d52c3..766c9880 100644
--- a/src/api/routes/users/#id/profile.ts
+++ b/src/api/routes/users/#id/profile.ts
@@ -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?