feat: update marketplace products

This commit is contained in:
2024-07-07 21:44:52 +03:00
parent 1bb5c6cbbb
commit 422b24f52d
6 changed files with 40 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ class BaseMarketplaceUpdater(ABC):
if not self.marketplace_api:
return
product_ids = list(set([update.product_id for update in updates]))
await self.update_products(product_ids)
async def update_products(self, product_ids: list[int]):
stock_data_list = await queries.general.get_stocks_data(
session=self.session,
marketplace=self.marketplace,