Skip to content

Commit

Permalink
Merge a81cdd4 into 3c0448e
Browse files Browse the repository at this point in the history
  • Loading branch information
mciuchitu committed Nov 10, 2021
2 parents 3c0448e + a81cdd4 commit b7d22c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/MIGRATION_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class MyPubsubEvent extends AbstractPubsubEvent<IMyPubsubEvent> {}
Before:

```typescript
@PubsubEventHandler(MyPubsubEvent)
export class MyPubsubEventHandler extends PubsubHandler implements IEventHandler<MyPubsubEvent> {
exchange: () => "my_exchange";

Expand All @@ -101,6 +102,7 @@ export class MyPubsubEventHandler extends PubsubHandler implements IEventHandler
Now:

```typescript
@PubsubEventHandler(MyPubsubEvent)
export class MyPubsubEventHandler extends AbstractPubsubHandler<MyPubsubEvent> {
async handle(event: MyPubsubEvent): Promise<void> {
const payload: IMyPubsubEvent = event.payload;
Expand Down

0 comments on commit b7d22c9

Please sign in to comment.