golevelup / nestjs

A collection of badass modules and utilities to help you level up your NestJS applications 🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wildcard routing stopped working. RabbitMQ

Andrius0124 opened this issue · comments

#567

Regarding the issue above. It seems that it has broken some existing functionality.

Let me give an example:
@RabbitRPC({ routingKey: "USER.UPDATED.#", queue: "someQueue" }) async handleUserUpdated()
if the message is pushed with routingKey "USER.UPDATED.TEST" the handler will never be hit.
The question is, should the wildcards be respected at that point, or is my initial implementation wrong?

PR added
@WonderPanda