summary refs log tree commit diff
diff options
context:
space:
mode:
authorRealMANI <96433859+ImAaronFR@users.noreply.github.com>2022-02-16 00:02:13 +0330
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-02-16 10:46:08 +0300
commit0f77e9c5fce971a63fdb1e1fb6f1679617c56757 (patch)
tree797e403a376e37a3ec2fed7d48ea6a3c7074ab41
parentMutual Friends (diff)
downloadserver-0f77e9c5fce971a63fdb1e1fb6f1679617c56757.tar.xz
Typo
-rw-r--r--api/src/routes/users/#id/relationships.ts2
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"]
 	});