Updated notification name and other minor fixes

This commit is contained in:
Keith Holliday
2016-10-25 07:56:43 -05:00
parent 3ec3722038
commit 5b240a1950
7 changed files with 13 additions and 14 deletions

View File

@@ -225,7 +225,7 @@ api.approveTask = {
task.group.approvingUser = user._id;
task.group.approved = true;
assignedUser.addNotification('GROUP', {message: res.t('yourTaskHasBeenApproved')});
assignedUser.addNotification('GROUP_TASK_APPROVAL', {message: res.t('yourTaskHasBeenApproved')});
await Bluebird.all([assignedUser.save(), task.save()]);
@@ -266,7 +266,7 @@ api.getGroupApprovals = {
'group.id': groupId,
'group.approved': false,
'group.approvalRequested': true,
}).exec();
}, 'userId group').exec();
res.respond(200, approvals);
},