Skip to content

Commit

Permalink
more info in the error
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Jul 31, 2024
1 parent 8dde8ff commit 177edca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/domain/use-cases/run-import.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,16 @@ export const runImport = async (importId: string, operations: Operation[], { emi
},
afterRequest: async (
batch: MassCallClientBatch,
_: CrystallizePromise<unknown>,
promise: CrystallizePromise<unknown>,
results: unknown,
): Promise<void> => {
emitter.emit(importId, { event: `success`, results, batch });
emitter.emit(importId, {
event: `success`,
results,
batch,
promise: promise.query,
variables: promise.variables,
});
},
});
otherOperations.forEach((operation) => {
Expand Down

0 comments on commit 177edca

Please sign in to comment.