summary refs log tree commit diff
path: root/api/src/routes/users/@me/profile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/users/@me/profile.ts')
-rw-r--r--api/src/routes/users/@me/profile.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/routes/users/@me/profile.ts b/api/src/routes/users/@me/profile.ts
index fdb969dc..5ba03c68 100644
--- a/api/src/routes/users/@me/profile.ts
+++ b/api/src/routes/users/@me/profile.ts
@@ -1,13 +1,13 @@
 import { Router, Request, Response } from "express";
-import { getPublicUser } from "../../../util/User";
+import { User } from "../../../../../util/dist";
 
 const router: Router = Router();
 
 router.get("/", async (req: Request, res: Response) => {
-	const user = await getPublicUser(req.user_id, { data: true });
+	const user = await User.getPublicUser(req.user_id, { relations: ["connected_accounts"] });
 
 	res.json({
-		connected_accounts: user.data.connected_accounts,
+		connected_accounts: user.connected_accounts,
 		premium_guild_since: null, // TODO
 		premium_since: null, // TODO
 		user: {