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

Return instead of await requests #799

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4375

Part of a series of changes related to replacing the create bill run journey to incorporate changes for two-part tariff

The code that calls these requests should have the option to decide whether the request needs to be awaited or not. If we return directly rather than const results await they have that option.

This updates the requests to return rather than await the result. There will be no impact on the code because it is already awaiting these requests when they are used.

https://eaflood.atlassian.net/browse/WATER-4375

> Part of a series of changes related to replacing the create bill run journey to incorporate changes for two-part tariff

The code that calls these requests should have the option to decide whether the request needs to be awaited or not. If we return directly rather than `const results await` they have that option.

This updates the requests to return rather than await the result. There will be no impact on the code because it is already awaiting these requests when they are used.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Mar 10, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 10, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 10, 2024 09:12
@Cruikshanks Cruikshanks merged commit 9a71c55 into main Mar 10, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the return-instead-of-await-requests branch March 10, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant