Skip to content

Conversation

@smriti0710
Copy link

Resolves #6496
Impact: minor
Type: bugfix

Issue

createHandle is a recursive function to determine an available product handle.
It is async due to the database queries which need to be awaited.
The recursive call should be awaited aswell

Solution

Await createHandle.

@changeset-bot
Copy link

changeset-bot bot commented Oct 15, 2022

🦋 Changeset detected

Latest commit: cfb8006

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@reactioncommerce/api-plugin-products Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Smriti Prakash added 2 commits October 15, 2022 11:43
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
Signed-off-by: Smriti Prakash <[email protected]>
@smriti0710 smriti0710 force-pushed the issue-6496-await-recursive-createHandle-calls branch from 262f0d6 to b48825c Compare October 15, 2022 06:14
@brent-hoover brent-hoover self-requested a review October 15, 2022 11:28
@brent-hoover brent-hoover merged commit da037cc into reactioncommerce:trunk Oct 16, 2022
This was referenced Oct 16, 2022
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.

Recursive createHandle call should be awaited

2 participants