From 608dde4619a95da74cd4a1b0b7121dfeddce4ee4 Mon Sep 17 00:00:00 2001 From: tanshu Date: Fri, 18 Dec 2020 12:53:08 +0530 Subject: [PATCH] Fix: Modifier Category was borking as it was sending the product version id instead of product id in modifier category info --- barker/barker/routers/modifier_category.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barker/barker/routers/modifier_category.py b/barker/barker/routers/modifier_category.py index a8a37c2..e4c6e64 100644 --- a/barker/barker/routers/modifier_category.py +++ b/barker/barker/routers/modifier_category.py @@ -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, )