(size)
| 112 | }; |
| 113 | |
| 114 | const buildTasksQueryForMissedUpdates = (size) => { |
| 115 | const completedTasksStatusList = Object.values(COMPLETED_TASK_STATUS); |
| 116 | return tasksModel |
| 117 | .where("status", "not-in", [...completedTasksStatusList, TASK_STATUS.AVAILABLE]) |
| 118 | .orderBy("status") |
| 119 | .orderBy("assignee") |
| 120 | .limit(size); |
| 121 | }; |
| 122 | |
| 123 | const transformTasksUsersQuery = (queries) => { |
| 124 | if (!queries) return {}; |
no outgoing calls
no test coverage detected