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

@@ -326,9 +326,9 @@ api.scoreTask = {
let group = await Group.getGroup({user, groupId: task.group.id, fields: requiredGroupFields});
let groupLeader = await User.findById(group.leader); // Use this method so we can get access to notifications
groupLeader.addNotification('GROUP', {
groupLeader.addNotification('GROUP_TASK_APPROVAL', {
message: res.t('userHasRequestedTaskApproval', {
user: user.auth.local.username,
user: user.profile.name,
taskName: task.text,
}),
});