We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a9225 commit 3acb59dCopy full SHA for 3acb59d
src/mikro-flusher.interceptor.ts
@@ -29,7 +29,8 @@ export class MikroFlusherInterceptor implements NestInterceptor {
29
if (operation != "mutation") return next.handle();
30
31
const context = MikroFlusherContext.current;
32
- if (!context) throw new Error();
+ if (!context)
33
+ throw new Error("The middleware must be applied for this route");
34
35
context.mutationCountTotal++;
36
0 commit comments