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

Refactor all backend database functions to include ctx for transactions #155

Open
MichaelZhao21 opened this issue Oct 15, 2024 · 0 comments
Labels
A: Backend A task that concerns backend development B: Refactor Issue related to code refactoring/formatting difficult Issue that is relatively harder to fix

Comments

@MichaelZhao21
Copy link
Contributor

MichaelZhao21 commented Oct 15, 2024

Describe the feature you'd like

All database functions should include a ctx mongo.SessionContext parameter to handle transactions. This should also be the FIRST parameter in all these functions.

Pre-existing Issue or Justification

Mostly just for style and consistency

Additional context

No response

@MichaelZhao21 MichaelZhao21 added A: Backend A task that concerns backend development B: Refactor Issue related to code refactoring/formatting difficult Issue that is relatively harder to fix labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: Backend A task that concerns backend development B: Refactor Issue related to code refactoring/formatting difficult Issue that is relatively harder to fix
Projects
None yet
Development

No branches or pull requests

1 participant