Skip to content

Commit

Permalink
Merge pull request #681 from OneCommunityGlobal/revert-651-vishala_le…
Browse files Browse the repository at this point in the history
…aderboard_api_fix

Revert "Vishala Leaderboard and Team Member Tasks Api Fix"
  • Loading branch information
one-community authored Jan 4, 2024
2 parents 63ea485 + 9c913c7 commit c7a6bef
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 782 deletions.
2 changes: 1 addition & 1 deletion src/controllers/taskController.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ const taskController = function (Task) {
const getTasksForTeamsByUser = async (req, res) => {
try {
const userId = mongoose.Types.ObjectId(req.params.userId);
const teamsData = await taskHelper.getTasksForTeams(userId);
const teamsData = await taskHelper.getTasksForTeams(userId).exec();
if (teamsData.length > 0) {
res.status(200).send(teamsData);
} else {
Expand Down
Loading

0 comments on commit c7a6bef

Please sign in to comment.