Skip to content

Commit 1f4d942

Browse files
authored
Merge pull request #2020 from Real-Dev-Squad/fix/orphan-tasks-staging
Fix: orphan tasks bug in staging.
2 parents 32b3e35 + f8ca44c commit 1f4d942

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

models/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ const markUnDoneTasksOfArchivedUsersBacklog = async (users) => {
683683
const batch = firestore.batch();
684684
for (const user of users) {
685685
const tasksQuerySnapshot = await tasksModel
686-
.where("assigneeId", "==", user.id)
686+
.where("assignee", "==", user.id)
687687
.where("status", "not-in", [COMPLETED, DONE, BACKLOG])
688688
.get();
689689
tasksQuerySnapshot.forEach(async (taskDoc) => {

test/integration/external-accounts.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,15 +312,15 @@ describe("External Accounts", function () {
312312

313313
const userId = usersFromRds[4].id;
314314
const task1 = {
315-
assigneeId: userId,
315+
assignee: userId,
316316
status: "ACTIVE",
317317
};
318318
const task2 = {
319-
assigneeId: userId,
319+
assignee: userId,
320320
status: "COMPLETED",
321321
};
322322
const task3 = {
323-
assigneeId: userId,
323+
assignee: userId,
324324
status: "IN_PROGRESS",
325325
};
326326
await Promise.all([tasksModel.add(task1), tasksModel.add(task2), tasksModel.add(task3)]);

0 commit comments

Comments
 (0)