Skip to content

Commit

Permalink
fix(rabbitmq): make assertQueueErrorHandler optional
Browse files Browse the repository at this point in the history
The non optional field assertQueueErrorHandler in the MessageHandlerOptions interface broke existing
code. This has been fixed.

fix #364
  • Loading branch information
timoklingenhoefer committed Jan 20, 2022
1 parent 972c3ae commit 1a5fd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rabbitmq/src/rabbitmq.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface MessageHandlerOptions {
/**
* A function that will be called if an error is thown during queue creation (i.e during channel.assertQueue)
*/
assertQueueErrorHandler: AssertQueueErrorHandler;
assertQueueErrorHandler?: AssertQueueErrorHandler;
allowNonJsonMessages?: boolean;
createQueueIfNotExists?: boolean;
}
Expand Down

0 comments on commit 1a5fd4e

Please sign in to comment.