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

Improve Promise error handling #141

Merged
merged 4 commits into from
Sep 18, 2024
Merged

Conversation

Carifio24
Copy link
Member

This PR is intended to help with #139. While this doesn't prevent any possible errors, this PR enables the @typescript-eslint/no-floating-promises rule to help make sure that we're handling our promises correctly. This also fixes the issues that were flagged by that rule. In most cases this amounted to some straightforward error handling, but there were a few endpoints that do multiple inserts into tables where I decided that the best way to handle things was by refactoring to use transactions.

@Carifio24 Carifio24 merged commit 8df95fc into cosmicds:main Sep 18, 2024
1 check passed
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.

1 participant