Fix: Modifier Category was borking as it was sending the product version id instead of product id in modifier category info

This commit is contained in:
Amritanshu Agrawal 2020-12-18 12:53:08 +05:30
parent 63f5871350
commit 608dde4619

View File

@ -246,7 +246,7 @@ def modifier_category_info(item: ModifierCategory, date_: date, db: Session) ->
enabled=False, enabled=False,
products=[ products=[
ProductLinkSchema( ProductLinkSchema(
id=p.id, id=p.product_id,
name=p.name, name=p.name,
enabled=True if p.product_id in products else False, enabled=True if p.product_id in products else False,
) )