summary refs log tree commit diff
path: root/api/src/routes/users/#id/profile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/users/#id/profile.ts')
-rw-r--r--api/src/routes/users/#id/profile.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/api/src/routes/users/#id/profile.ts b/api/src/routes/users/#id/profile.ts
index 4dbb84cf..7a995a8c 100644
--- a/api/src/routes/users/#id/profile.ts
+++ b/api/src/routes/users/#id/profile.ts
@@ -15,10 +15,10 @@ router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }),
 	if (req.params.id === "@me") req.params.id = req.user_id;
 	const user = await User.getPublicUser(req.params.id, { relations: ["connected_accounts"] });
 
-	var mutual_guilds: object[] = [];
-	var premium_guild_since;
-	const requested_member = await Member.find( { id: req.params.id,  })
-	const self_member = await Member.find( { id: req.user_id,  })
+	let mutual_guilds: object[] = [];
+	let premium_guild_since;
+	const requested_member = await Member.find( { where: { id: req.params.id, } })
+	const self_member = await Member.find( { where: { id: req.user_id, } })
 
 	for(const rmem of requested_member) {
 		if(rmem.premium_since) {