fix(storefront): get_products_by_category包装函数补透传org_id(模板显式指定机构0)
This commit is contained in:
parent
fd794616b3
commit
d2162db306
@ -71,10 +71,10 @@ async def get_category_tree(org_id=None):
|
||||
return await manager.get_category_tree(org_id)
|
||||
|
||||
|
||||
async def get_products_by_category(category_id, status='1'):
|
||||
async def get_products_by_category(category_id, org_id=None, status='1'):
|
||||
"""Get all products under a category."""
|
||||
manager = get_manager()
|
||||
return await manager.get_products_by_category(category_id, status)
|
||||
return await manager.get_products_by_category(category_id, org_id, status)
|
||||
|
||||
|
||||
async def import_categories_and_products(resource_module, org_id, parent_category_id, user_id):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user