1 files changed, 11 insertions, 0 deletions
diff --git a/src/api/routes/users/#user_id/profile.ts b/src/api/routes/users/#user_id/profile.ts
index 2a580c4b..c6a55201 100644
--- a/src/api/routes/users/#user_id/profile.ts
+++ b/src/api/routes/users/#user_id/profile.ts
@@ -35,6 +35,17 @@ router.get("/", route({ responses: { 200: { body: "UserProfileResponse" } } }),
id: user_id,
},
relations: { connected_accounts: true },
+ select: {
+ // Manually select everything cause typeorm is a fuck
+ connected_accounts: {
+ id: true,
+ type: true,
+ name: true,
+ verified: true,
+ metadata_: true,
+ visibility: true,
+ },
+ },
});
const mutual_guilds: object[] = [];
|