summary refs log tree commit diff
path: root/src/api/routes/users
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 11:28:29 +0100
committerRory& <root@rory.gay>2025-12-17 11:28:29 +0100
commit915000ee40784254b93d85d9a074b6b4e0ea52ec (patch)
treeefa8c69e371dbc7f7f330c137cf51f08128ed8c5 /src/api/routes/users
parentMerge remote-tracking branch 'mathium05/greetFix' (diff)
parentRun ESLint (diff)
downloadserver-ts-915000ee40784254b93d85d9a074b6b4e0ea52ec.tar.xz
Merge remote-tracking branch 'DEVTomatoCake/fix/getPublicUser-no-defaults'
Diffstat (limited to 'src/api/routes/users')
-rw-r--r--src/api/routes/users/#user_id/profile.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/routes/users/#user_id/profile.ts b/src/api/routes/users/#user_id/profile.ts

index bcd59cd1..b100ac35 100644 --- a/src/api/routes/users/#user_id/profile.ts +++ b/src/api/routes/users/#user_id/profile.ts
@@ -29,7 +29,10 @@ router.get("/", route({ responses: { 200: { body: "UserProfileResponse" } } }), const { guild_id, with_mutual_guilds, with_mutual_friends, with_mutual_friends_count } = req.query; - const user = await User.getPublicUser(req.params.user_id, { + const user = await User.findOneOrFail({ + where: { + id: req.params.id, + }, relations: ["connected_accounts"], });