Fix: Product list would not show as MenuCategoryLink needs list of products

This commit is contained in:
Amritanshu Agrawal 2021-04-12 09:01:46 +05:30
parent 0477fde460
commit d92cd295e1
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ def product_info(item: ProductVersion) -> schemas.Product:
id=item.product_id,
name=item.name,
units=item.units,
menuCategory=schemas.MenuCategoryLink(id=item.menu_category_id, name=item.menu_category.name),
menuCategory=schemas.MenuCategoryLink(id=item.menu_category_id, name=item.menu_category.name, products=[]),
saleCategory=schemas.SaleCategoryLink(
id=item.sale_category_id,
name=item.sale_category.name,