MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / buildProgressQueryForMissedUpdates

Function buildProgressQueryForMissedUpdates

utils/progresses.js:298–305  ·  view source on GitHub ↗
(taskId, startTimestamp, endTimestamp)

Source from the content-addressed store, hash-verified

296};
297
298const buildProgressQueryForMissedUpdates = (taskId, startTimestamp, endTimestamp) => {
299 return progressesModel
300 .where("type", "==", "task")
301 .where("taskId", "==", taskId)
302 .where("date", ">=", convertTimestampToUTCStartOrEndOfDay(startTimestamp))
303 .where("date", "<=", convertTimestampToUTCStartOrEndOfDay(endTimestamp, true))
304 .count();
305};
306module.exports = {
307 getProgressDateTimestamp,
308 buildQueryForPostingProgress,

Callers 1

updateTasksIdMapFunction · 0.85

Tested by

no test coverage detected