diff --git a/models/tasks.js b/models/tasks.js index 31b6e6188..86a85d33e 100644 --- a/models/tasks.js +++ b/models/tasks.js @@ -683,7 +683,7 @@ const markUnDoneTasksOfArchivedUsersBacklog = async (users) => { const batch = firestore.batch(); for (const user of users) { const tasksQuerySnapshot = await tasksModel - .where("assigneeId", "==", user.id) + .where("assignee", "==", user.id) .where("status", "not-in", [COMPLETED, DONE, BACKLOG]) .get(); tasksQuerySnapshot.forEach(async (taskDoc) => { diff --git a/test/integration/external-accounts.test.js b/test/integration/external-accounts.test.js index 04f2c017d..158b6bac0 100644 --- a/test/integration/external-accounts.test.js +++ b/test/integration/external-accounts.test.js @@ -312,15 +312,15 @@ describe("External Accounts", function () { const userId = usersFromRds[4].id; const task1 = { - assigneeId: userId, + assignee: userId, status: "ACTIVE", }; const task2 = { - assigneeId: userId, + assignee: userId, status: "COMPLETED", }; const task3 = { - assigneeId: userId, + assignee: userId, status: "IN_PROGRESS", }; await Promise.all([tasksModel.add(task1), tasksModel.add(task2), tasksModel.add(task3)]);