MCPcopy
hub / github.com/chartbrew/chartbrew / dispatch

Function dispatch

server/tests/integration/updateRunRoute.test.js:58–70  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

56 const res = createMockResponse();
57
58 const dispatch = async (index) => {
59 if (index >= handlers.length) {
60 return;
61 }
62
63 await handlers[index](req, res, (error) => {
64 if (error) {
65 return Promise.reject(error);
66 }
67
68 return dispatch(index + 1);
69 });
70 };
71
72 await dispatch(0);
73

Callers 15

executeRouteHandlersFunction · 0.70
getAllProjectsFunction · 0.50
getProjectFunction · 0.50
createProjectFunction · 0.50
updateProjectFunction · 0.50
updateProjectLogoFunction · 0.50
removeProjectFunction · 0.50
getPublicDashboardFunction · 0.50
changeActiveProjectFunction · 0.50
getDataRequestByDatasetFunction · 0.50
createDataRequestFunction · 0.50
updateDataRequestFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected