Browse Source

docs: Fix example for blocking event handler API

Michael Bromley 1 year ago
parent
commit
59206d924d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/docs/guides/developer-guide/events/index.mdx

+ 2 - 2
docs/docs/guides/developer-guide/events/index.mdx

@@ -341,7 +341,7 @@ export class MyPluginPlugin implements OnModuleInit {
     onModuleInit() {
     onModuleInit() {
         // highlight-start
         // highlight-start
         this.eventBus.registerBlockingEventHandler({
         this.eventBus.registerBlockingEventHandler({
-            type: CustomerEvent,
+            event: CustomerEvent,
             id: 'sync-customer-details-handler',
             id: 'sync-customer-details-handler',
             handler: async event => {
             handler: async event => {
                 // This hypothetical service method would do nothing
                 // This hypothetical service method would do nothing
@@ -403,4 +403,4 @@ this.eventBus.registerBlockingEventHandler({
     // highlight-next-line
     // highlight-next-line
     before: 'sync-customer-details-handler',
     before: 'sync-customer-details-handler',
 });
 });
-```
+```