From 59206d924d0969dee20c73e91baac105eace212a Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 29 Apr 2024 10:21:18 +0200 Subject: [PATCH] docs: Fix example for blocking event handler API --- docs/docs/guides/developer-guide/events/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/guides/developer-guide/events/index.mdx b/docs/docs/guides/developer-guide/events/index.mdx index ecdba64173..77197b61ea 100644 --- a/docs/docs/guides/developer-guide/events/index.mdx +++ b/docs/docs/guides/developer-guide/events/index.mdx @@ -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 @@ -403,4 +403,4 @@ this.eventBus.registerBlockingEventHandler({ // highlight-next-line before: 'sync-customer-details-handler', }); -``` \ No newline at end of file +```