mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 10:12:21 +00:00
fix(tasks): remove spurious uncheck notification
This commit is contained in:
parent
971891dd6b
commit
aebf13810f
1 changed files with 0 additions and 15 deletions
|
|
@ -449,21 +449,6 @@ async function scoreTask (user, task, direction, req, res) {
|
|||
user: rollbackUser,
|
||||
direction,
|
||||
}, req, res.analytics);
|
||||
rollbackUser.addNotification('GROUP_TASK_NEEDS_WORK', {
|
||||
message: res.t('taskNeedsWork', { taskText: task.text, managerName: user.auth.local.username }, rollbackUser.preferences.language),
|
||||
task: {
|
||||
id: task._id,
|
||||
text: task.text,
|
||||
},
|
||||
group: {
|
||||
id: group._id,
|
||||
name: group.name,
|
||||
},
|
||||
manager: {
|
||||
id: user._id,
|
||||
name: user.auth.local.username,
|
||||
},
|
||||
});
|
||||
await rollbackUser.save();
|
||||
} else {
|
||||
delta = shared.ops.scoreTask({ task, user, direction }, req, res.analytics);
|
||||
|
|
|
|||
Loading…
Reference in a new issue