You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to implement a multi-vendor solution by extending the concepts I see in medusa-extender.
When using the Algolia plugin - only the products from the default database are uploaded to Algolia. That is due to the ProductService that is being provided to the SearchIndexingSubscriber using the manager pointing to the default database.
To make a multi-vendor version of that subscriber, I'm thinking I would need a way to change the manager that is used in that ProductService instance to point to the other vendors' databases. ...and no, I don't want to change the information for that instance in MedusaContainer - I would need to be able to get a scoped instance to work with "locally".
How can I modify that instance of the ProductService to use a different connection to allow me to pull the products from a different database in something like a subscriber/service/etc?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone,
Trying to implement a multi-vendor solution by extending the concepts I see in medusa-extender.
When using the Algolia plugin - only the products from the default database are uploaded to Algolia. That is due to the ProductService that is being provided to the SearchIndexingSubscriber using the manager pointing to the default database.
To make a multi-vendor version of that subscriber, I'm thinking I would need a way to change the manager that is used in that ProductService instance to point to the other vendors' databases. ...and no, I don't want to change the information for that instance in MedusaContainer - I would need to be able to get a scoped instance to work with "locally".
How can I modify that instance of the ProductService to use a different connection to allow me to pull the products from a different database in something like a subscriber/service/etc?
Thanks for your time and help.
Beta Was this translation helpful? Give feedback.
All reactions