Skip to content

Commit bfef2a5

Browse files
committed
fix(es-cqrs): add unhandled exception bus
1 parent 4932319 commit bfef2a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/es-cqrs/src/cqrs.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Inject, Module, OnModuleInit } from '@nestjs/common'
2-
import { CommandBus } from '@nestjs/cqrs'
2+
import { CommandBus, UnhandledExceptionBus } from '@nestjs/cqrs'
33

44
import { ExplorerService } from './explorer.service'
55
import { RateLimitedEventBus } from './rate-limited-event-bus'
66

77
@Module({
88
exports: [CommandBus, RateLimitedEventBus],
9-
providers: [CommandBus, ExplorerService, RateLimitedEventBus],
9+
providers: [CommandBus, ExplorerService, RateLimitedEventBus, UnhandledExceptionBus],
1010
})
1111
export class CqrsModule implements OnModuleInit {
1212
public constructor(

0 commit comments

Comments
 (0)