fix(teams): complete task sorting

This commit is contained in:
SabreCat
2022-06-24 16:43:41 -05:00
parent 9142588ba7
commit 712b85ce84
2 changed files with 9 additions and 4 deletions

View File

@@ -819,7 +819,7 @@ api.moveTask = {
if (task.type === 'todo' && task.completed) throw new BadRequest(res.t('cantMoveCompletedTodo'));
const owner = group || challenge || user;
const owner = challenge || user;
// In memory updates
const order = owner.tasksOrder[`${task.type}s`];
@@ -846,7 +846,7 @@ api.moveTask = {
// it cannot be updated in the pre update hook
// See https://github.com/HabitRPG/habitica/pull/9321#issuecomment-354187666 for more info
// Only users have a version.
if (!group && !challenge) {
if (!challenge) {
owner._v += 1;
}