diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 00:03:40 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-29 00:03:40 +0200 |
commit | e99008a1a5fe6eb64821235bb56d34d620e08fe7 (patch) | |
tree | 8e3320d9a2f1cbe58d980458fc94f7b826a1c78e /api/src/routes/users/#id/profile.ts | |
parent | :construction: typeorm (diff) | |
download | server-e99008a1a5fe6eb64821235bb56d34d620e08fe7.tar.xz |
:sparkles: typeorm api rewrite done
Diffstat (limited to 'api/src/routes/users/#id/profile.ts')
-rw-r--r-- | api/src/routes/users/#id/profile.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/users/#id/profile.ts b/api/src/routes/users/#id/profile.ts index 9b2e2d5e..afccfed5 100644 --- a/api/src/routes/users/#id/profile.ts +++ b/api/src/routes/users/#id/profile.ts @@ -1,10 +1,10 @@ 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.params.id, { data: true }); + const user = await User.getPublicUser(req.params.id, { relations: ["connected_accounts"] }); res.json({ connected_accounts: user.connected_accounts, |