(queryParams)
| 80 | * @throws {Error} If the userId or taskId is invalid or does not exist. |
| 81 | **/ |
| 82 | const getRangeProgressData = async (queryParams) => { |
| 83 | const { startDate, endDate } = queryParams; |
| 84 | await assertUserOrTaskExists(queryParams); |
| 85 | const query = buildRangeProgressQuery(queryParams); |
| 86 | const progressRecords = await getProgressRecords(query, queryParams); |
| 87 | return { |
| 88 | startDate, |
| 89 | endDate, |
| 90 | progressRecords, |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | /** |
| 95 | * This function fetches the progress records for a particular user or task on the specified date. |
nothing calls this directly
no test coverage detected