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

Fix duplicate postgres database connection issue #2961

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gordonfarrell
Copy link
Collaborator

PULL REQUEST

Summary

Refactors the way we setup and use pgPromise to eliminate the duplicate database connection issue. The db connection is now set up as a singleton and exported everywhere rather than pulling it in and setting things up in each individual file that needs to access it

Related Issue

Fixes #2813

Acceptance Criteria

  • No longer see the following message in the eCR viewer logs
    image

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

Successfully merging this pull request may close these issues.

Duplicate database connection in eCR Viewer
1 participant