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: cloud-sql-instance promise chaining #245

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

ruyadorno
Copy link
Contributor

Mixing async/await syntax with thenable method chaining was leading to a promise chain that can potentially error with no handler, resulting in a possible unhandled rejection.

This PR fixes it by making sure a single promise chain is returned in place.

Mixing async/await syntax with thenable method chaining was leading to a
promise chain that can potentially error with no handler, resulting in a
possible unhandled rejection.

This changeset fixes it by making sure a single promise chain is
returned in place.
Copy link
Collaborator

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

LGTM, nice job! 😄

@ruyadorno ruyadorno merged commit 5fde5b3 into main Nov 15, 2023
23 checks passed
@ruyadorno ruyadorno deleted the fix-cloud-sql-instance-promise-chaining branch November 15, 2023 14:17
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