mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
WIP(teams): fix initially unassigned task, add completedBy data
This commit is contained in:
@@ -375,6 +375,10 @@ async function scoreTask (user, task, direction, req, res) {
|
||||
}
|
||||
}
|
||||
|
||||
if (task.completed && task.group.id && !task.userId) {
|
||||
task.group.completedBy = user._id;
|
||||
}
|
||||
|
||||
setNextDue(task, user);
|
||||
|
||||
if (localTask) {
|
||||
|
||||
Reference in New Issue
Block a user