-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: resolve issue with ordering of middleware being applied #189
base: master
Are you sure you want to change the base?
fix: resolve issue with ordering of middleware being applied #189
Conversation
…`forRoot` registering to resolve issue with ordering of middleware being applied
i cant say i like the naming, the word |
The module doesn't just handle the middleware it also handles registering multiple |
the user still needs to do the strictly speaking, the renaming of various symbols and types is a breaking change, i would rather keep the old naming everywhere |
Yes the user would be required to Yeah I understand adding the new |
@B4nan, I have added additional tests and a test to show the issue arising; I have also found that this issue also occurs with the original middleware registration within |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few notes to begin with, the main takeaway: lets rename all the symbols from Multiple*
to just Multi*
, feels like better english to me
also be careful with all the renames, there are still breaking changes in this PR
Co-authored-by: Martin Adámek <[email protected]>
@B4nan updated based off your review |
When setting up the nestjs modules with MikroORM there is a chance it can throw
Using global EntityManager instance methods for context specific actions is disallowed.
when interacting with the EM within another middleware.This fix applies to both single and multi database set-ups.