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

Prevent unauthenticated users from opening an unneeded database conne… #403

Merged
merged 2 commits into from Mar 8, 2024

Conversation

holmbergius
Copy link
Contributor

…ction

This Shepherd object (DB connection) is only needed for unauthenticated users, and we can save the connection cost by checking that first.

@holmbergius holmbergius self-assigned this Mar 8, 2024
myShepherd.closeDBTransaction();
}

//check if user is logged in and has
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment trails off

finished comment
Copy link
Member

@TanyaStere42 TanyaStere42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified won't impact external sharing of encounters; lgtm

@TanyaStere42 TanyaStere42 merged commit c82c789 into master Mar 8, 2024
2 checks passed
@TanyaStere42 TanyaStere42 deleted the notification-check-optimization branch March 8, 2024 18:02
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.

None yet

2 participants