mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
partial revert of hotfix for further review
This commit is contained in:
parent
2828ae660c
commit
9a454daef1
1 changed files with 1 additions and 4 deletions
|
|
@ -839,10 +839,7 @@ api.moveTask = {
|
|||
// In memory updates
|
||||
const order = owner.tasksOrder[`${task.type}s`];
|
||||
if (order.indexOf(task._id) === -1) { // task is missing from list, list needs repair
|
||||
const taskList = await Tasks.Task.find(
|
||||
{ userId: owner._id, type: task.type },
|
||||
{ _id: 1 },
|
||||
).exec();
|
||||
const taskList = await Tasks.Task.find({ type: task.type }, { _id: 1 }).exec();
|
||||
for (const foundTask of taskList) {
|
||||
if (order.indexOf(foundTask._id) === -1) {
|
||||
order.push(foundTask._id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue