From 377e5e94b981a7021303d085d878f46d1ecef81b Mon Sep 17 00:00:00 2001 From: Shuhua-L Date: Sat, 10 Feb 2024 01:23:06 -0500 Subject: [PATCH] added adminLinks field to getTasksForTeamsByUser controller --- src/helpers/taskHelper.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helpers/taskHelper.js b/src/helpers/taskHelper.js index 5441da036..4c2bc9a7b 100644 --- a/src/helpers/taskHelper.js +++ b/src/helpers/taskHelper.js @@ -24,6 +24,7 @@ const taskHelper = function () { weeklySummaries: 1, timeOffFrom: 1, timeOffTill: 1, + adminLinks: 1, }, ); @@ -56,6 +57,7 @@ const taskHelper = function () { weeklycommittedHours: 1, timeOffFrom: 1, timeOffTill: 1, + adminLinks: 1, }, ); break; @@ -81,6 +83,7 @@ const taskHelper = function () { weeklycommittedHours: 1, timeOffFrom: 1, timeOffTill: 1, + adminLinks: 1, }, ); break; @@ -106,6 +109,7 @@ const taskHelper = function () { weeklycommittedHours: 1, timeOffFrom: 1, timeOffTill: 1, + adminLinks: 1, }, ); } @@ -196,6 +200,7 @@ const taskHelper = function () { tasks: taskByPerson[teamMember._id.toString()] || [], timeOffFrom: teamMember.timeOffFrom || null, timeOffTill: teamMember.timeOffTill || null, + adminLinks: teamMember.adminLinks || null, }; teamMemberTasksData.push(obj); });