From 5477e2604fc88195d3d7429ff4860008b5d608dc Mon Sep 17 00:00:00 2001 From: Jonas Simoen Date: Sat, 15 Jun 2024 17:16:05 +0200 Subject: [PATCH] include team user instead of auth player in points response --- src/controllers/Team.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/Team.ts b/src/controllers/Team.ts index 2037ade..2993f35 100644 --- a/src/controllers/Team.ts +++ b/src/controllers/Team.ts @@ -345,7 +345,7 @@ export const GetPointsTeamHandler = async (req: any, rep: any) => { rank: globalData.find((teamData: any) => teamData.teamId === +req.params.id)?.rank || 0, points: globalData.find((teamData: any) => teamData.teamId === +req.params.id)?.points || 0, }, - user: req.user, + user: user, transfers: Transfer, weeks: { deadlineDate: deadlineWeek?.deadlineDate,