From 0f77e9c5fce971a63fdb1e1fb6f1679617c56757 Mon Sep 17 00:00:00 2001 From: RealMANI <96433859+ImAaronFR@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:02:13 +0330 Subject: [PATCH] Typo --- api/src/routes/users/#id/relationships.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] });