Skip to content

Commit

Permalink
docs: Fix example for blocking event handler API
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 29, 2024
1 parent 7ac4ac9 commit 59206d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/developer-guide/events/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class MyPluginPlugin implements OnModuleInit {
onModuleInit() {
// highlight-start
this.eventBus.registerBlockingEventHandler({
type: CustomerEvent,
event: CustomerEvent,
id: 'sync-customer-details-handler',
handler: async event => {
// This hypothetical service method would do nothing
Expand Down Expand Up @@ -403,4 +403,4 @@ this.eventBus.registerBlockingEventHandler({
// highlight-next-line
before: 'sync-customer-details-handler',
});
```
```

0 comments on commit 59206d9

Please sign in to comment.