Closed philipgough closed 7 years ago
:+1: Reviewed.
SonarQube analysis reported 1 issue:
Watch the comments in this conversation to review them. Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:
:+1: Nice, safer approach
@philbrookes Yep, I have tested and the events are still emitted from the parent connection so no point in risking any uncaught breaking changes. Going to merge and publish. Thanks
Motivation
Events were not being correctly emitted when there was an error with the connection to Mongo. Also, because some components dependent on fh-db need to listen for the close event, which was not being emitted, this was added