order
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-24 18:34:26 +03:30
parent ac58fcfd66
commit b8e4b5fe95
@@ -21,7 +21,7 @@ export class ProductRepository extends EntityRepository<Product> {
}
async findAllPaginated(opts: FindproductsOpts = {}): Promise<PaginatedResult<Product>> {
const { page = 1, limit = 10, search, orderBy = 'createdAt', order = 'desc', categoryId, isActive } = opts;
const { page = 1, limit = 10, search, orderBy = 'order', order = 'asc', categoryId, isActive } = opts;
const offset = (page - 1) * limit;