From accba7fc135eec8e0fc2d13578445066ee4eb039 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 3 Jul 2018 11:23:44 +0200 Subject: [PATCH] fix bug in task approval notification --- website/server/controllers/api-v3/tasks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/controllers/api-v3/tasks.js b/website/server/controllers/api-v3/tasks.js index 1ccdcefcb9..e309eac1c0 100644 --- a/website/server/controllers/api-v3/tasks.js +++ b/website/server/controllers/api-v3/tasks.js @@ -598,7 +598,7 @@ api.scoreTask = { groupId: group._id, taskId: task._id, // user task id, used to match the notification when the task is approved userId: user._id, - groupTaskId: task.group.id, // the original task id + groupTaskId: task.group.taskId, // the original task id direction, }); managerPromises.push(manager.save());