summary refs log tree commit diff
path: root/api/src/routes/users/#id/relationships.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/users/#id/relationships.ts')
-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"]
 	});