diff options
author | RealMANI <96433859+ImAaronFR@users.noreply.github.com> | 2022-02-16 00:02:13 +0330 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-02-16 10:46:08 +0300 |
commit | dcf9c436ed5bfdaeb4791ececb1aa89ae5a8cef2 (patch) | |
tree | 6b15c7fdc0a4a430f7142ba0953f8d6df0efaf4d /api/src/routes/users/#id | |
parent | Mutual Friends (diff) | |
download | server-dcf9c436ed5bfdaeb4791ececb1aa89ae5a8cef2.tar.xz |
Typo
Diffstat (limited to 'api/src/routes/users/#id')
-rw-r--r-- | api/src/routes/users/#id/relationships.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/#id/relationships.ts b/api/src/routes/users/#id/relationships.ts index 67668306..de7cb9d3 100644 --- a/api/src/routes/users/#id/relationships.ts +++ b/api/src/routes/users/#id/relationships.ts @@ -22,7 +22,7 @@ router.get("/", route({ test: { response: { body: "UserRelationsResponse" } } }) relations: ["relationships"] }); const self_relations = await User.findOneOrFail({ - where: { id: req.params.id }, + where: { id: req.user_id }, relations: ["relationships"] }); |