Skip to content

🔥 Refactor settings manager into an instance member #51

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

Merged
merged 2 commits into from
Feb 11, 2021

Conversation

maurocolella
Copy link
Contributor

See typestack/routing-controllers#642

Change in typedi ^0.9.0 appears to break the detection of services registered in nodepay-core. Issue is not addressed with even the @Service decorator on every participating class, hinting at a possible issue with the mechanism, ie. a bug in typedi.

As a workaround, this PR converts the settings manager into a base gateway instance member, rendering it available to each gateway strategy separately. Dependency injection is still preferred, and should be investigated separately.

@maurocolella maurocolella merged commit 2ac5462 into master Feb 11, 2021
@maurocolella maurocolella deleted the hotfix/remove-typedi branch February 11, 2021 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant