feat: order desc
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user