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

[0.2] Hotfix - Fix product/collection syncing #781

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

alecritson
Copy link
Collaborator

When saving a collection a check on the product count is done before attempting to sync the collection products, just in case we haven't loaded in the products (due to size) and we don't want to detach all the collections.

This logic is wrong however because if you have over the threshold, even if you load in the products, it'll never save the associations.

This check now adds a productsLoaded boolean which is used instead.

@vercel
Copy link

vercel bot commented Dec 21, 2022

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

Name Status Preview Updated
lunar-docs ✅ Ready (Inspect) Visit Preview Dec 21, 2022 at 2:53PM (UTC)

@alecritson alecritson merged commit 814e20e into main Dec 21, 2022
@alecritson alecritson deleted the hotfix/fix-collection-saving branch December 21, 2022 14:56
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.

2 participants