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

Function buildTaskRequests

utils/task-requests.ts:17–27  ·  view source on GitHub ↗
(taskRequests: any, initialArray: any = [])

Source from the content-addressed store, hash-verified

15};
16
17const buildTaskRequests = (taskRequests: any, initialArray: any = []) => {
18 if (!taskRequests.empty) {
19 taskRequests.forEach((taskRequests: any) => {
20 initialArray.push({
21 id: taskRequests.id,
22 ...taskRequests.data(),
23 });
24 });
25 }
26 return initialArray;
27};
28
29const transformTaskRequests = async (taskRequestsList: TaskRequestType[]) => {
30 const userIdSet = new Set();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected