Firstly, thanks for your work on this project! π
Today I used patch-package to patch @niur/nestjs-service-bus@1.1.0 for the project I'm working on.
I encountered an issue where the service bus listened to my RPC events while running the Nestjs server. Due to this reason, the server didn't start since the properties you are destructuring don't exist inside RPC events. This would be the case for any other event that is not a service bus event. In that case, wouldn't it be better to check for the particular event before doing any sort of logic? For now, I have done a patch to my project that returns if the event is RPC. But ideally, the subscribe function should listen to only the service bus events.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
@niur/nestjs-service-bus@1.1.0
for the project I'm working on.I encountered an issue where the service bus listened to my RPC events while running the Nestjs server. Due to this reason, the server didn't start since the properties you are destructuring don't exist inside RPC events. This would be the case for any other event that is not a service bus event. In that case, wouldn't it be better to check for the particular event before doing any sort of logic? For now, I have done a patch to my project that returns if the event is RPC. But ideally, the subscribe function should listen to only the service bus events.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.