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
1 changed files with 1 additions and 1 deletions

View File

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