Fix: Update Product Prices was one was used instead of all in query.

This commit is contained in:
Amritanshu Agrawal 2021-08-10 09:31:08 +05:30
parent 1ef7f98a07
commit beae4a07c6

View File

@ -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()
]