- Change consumers from @Injectable to @Controller for @EventPattern to work - Move consumers from providers to controllers array in module - Add subscribe.fromBeginning config to Kafka microservice The consumers were not receiving messages because NestJS microservices require @EventPattern handlers to be in @Controller classes, not just @Injectable services. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| contribution-distribution.consumer.ts | ||
| user-registered.consumer.ts | ||