From beae4a07c686a1dac462e5cf2344d8d04b3c1778 Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 10 Aug 2021 09:31:08 +0530 Subject: [PATCH] Fix: Update Product Prices was one was used instead of all in query. --- barker/barker/routers/update_product_prices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barker/barker/routers/update_product_prices.py b/barker/barker/routers/update_product_prices.py index dca262e..e899ac2 100644 --- a/barker/barker/routers/update_product_prices.py +++ b/barker/barker/routers/update_product_prices.py @@ -91,7 +91,7 @@ def update_product_prices_list( return [ UpdateProductPricesItem(id=item.product_id, name=item.full_name, oldPrice=item.price, newPrice=item.price) - for item in db.execute(list_).scalars().one() + for item in db.execute(list_).scalars().all() ]