-
Notifications
You must be signed in to change notification settings - Fork 24
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
refactor: StorageReader to factory #920
Conversation
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.
PR Review Checklist
- [n/a] Tested changes manually
- Checked accidental architectural/style changes
- Reviewed entire diff
- [n/a] Unit tests
- [n/a] Documentation
- Filenames and locations
PR Reviewer Comments
All those let
s make me nervous, but I understand most of them. Only one question.
export const StorageReader = (configuration: StorageReaderConfiguration): StorageReader => { | ||
let mongoClient: MongoClient | ||
let dbConnection: Db | ||
let router: Router |
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.
Why does router
need to be defined up here? I understand the others since they are referenced outside of the start
function.
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.
I think he's just trying to keep the changes to the minimum, and router was defined at class level betewen dbConnection and messaging before, too.
🎉 This PR is included in version 2.18.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
PR Process - PR Review Checklist
Release
Semantic release is enabled for this repository. Make sure you follow the right commit message convention.
We're using semantic-release's default — Angular Commit Message Conventions.
Description of Changes
resolves #903