* fix(search): add missing default product relations Add missing default product relations for events calling SearchService.addDocuments For the following events: `ProductService.Events.UPDATED, ProductVariantService.Events.CREATED, ProductVariantService.Events.UPDATED]`, `SearchService.addDocuments` will fail due to `product` missing its `variants` relations. The issue can be observed with the Algolia plugin where `reduce` is being attempted on `product.variants`. https://github.com/medusajs/medusa/blob/develop/packages/medusa-plugin-algolia/src/utils/transformer.ts#L14 Implement the same retrieve pattern as `handleProductCreation` method. * chore(changeset): patch --------- Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
Changesets
Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it in our repository
We have a quick list of common questions to get you started engaging with this project in our documentation