MCPcopy Create free account
hub / github.com/dailydotdev/apps / rejectBatch

Function rejectBatch

packages/shared/src/graphql/batch.ts:105–109  ·  view source on GitHub ↗
(items: BatchItem[], status: number, message: string)

Source from the content-addressed store, hash-verified

103 );
104
105const rejectBatch = (items: BatchItem[], status: number, message: string) => {
106 items.forEach((item) => {
107 item.reject(toClientError(item, { errors: [{ message }] }, status));
108 });
109};
110
111const requestSingle = async (item: BatchItem): Promise<void> => {
112 try {

Callers 1

flushFunction · 0.85

Calls 1

toClientErrorFunction · 0.85

Tested by

no test coverage detected