From 70178d94e9a093edf47a675881cfc563f7b7dfd2 Mon Sep 17 00:00:00 2001 From: fakz9 Date: Mon, 27 May 2024 15:07:18 +0300 Subject: [PATCH] feat: order desc --- services/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/product.py b/services/product.py index fdfe5c1..db05bdd 100644 --- a/services/product.py +++ b/services/product.py @@ -127,7 +127,7 @@ class ProductService(BaseService): ) query = await self.session.execute( stmt - .order_by(Product.id) + .order_by(Product.id.desc()) ) product_orm = query.scalars().all() if not is_pagination_valid: