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(default-search-plugin): Fix channels swapping and not swapping back in saveVariants when working with multiple channels #3041

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

hsensh
Copy link
Contributor

@hsensh hsensh commented Sep 2, 2024

Relates to #3012.

Description

While indexing variants, a product for a specific variant is queried. However, somewhere in the code the channels are being swapped if multiple channels exist, and they are not being swapped back, which is resulting in the product not being found for that channel as they don't exist, which is making the indexing fail. that's why I have added a line in the code that swaps the channels back to the original one at the start of every loop, and a line at the end of the loop.

…k in saveVariants when working with multiple channels

Relates to vendure-ecommerce#3012.
Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Sep 2, 2024 11:13am

Copy link
Contributor

github-actions bot commented Sep 2, 2024

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@hsensh
Copy link
Contributor Author

hsensh commented Sep 2, 2024

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Sep 2, 2024
@michaelbromley michaelbromley merged commit 75ed6e1 into vendure-ecommerce:master Sep 2, 2024
12 of 14 checks passed
@michaelbromley
Copy link
Member

Thanks for the quick fix! 🙏

@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants