Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumer event handlers omitted when using inheritAppConfig and ClassSerializerInterceptor #57

Open
jobcespedes opened this issue Jan 10, 2024 · 0 comments

Comments

@jobcespedes
Copy link

Describe the bug
No event handler is trigger when using inheritAppConfig and ClassSerializerInterceptor

To Reproduce
Steps to reproduce the behavior:

  1. Start the microservice application with inheritAppConfig: true.
  2. Set Serializer as Global Interceptor with app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)))
  3. Emit an event order.updated
  4. See that function with decorator @EventHandler('order.updated') is omitted
  5. Comment out Serializer as Global Interceptor with // app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector)))
  6. Emit an event order.updated
  7. See that function with decorator @EventHandler('order.updated') is triggered

Expected behavior
All functions with decorator @EventHandler() are triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant