order
This commit is contained in:
@@ -45,7 +45,7 @@ export class ProductRepository extends EntityRepository<Product> {
|
||||
limit,
|
||||
offset,
|
||||
orderBy: { [orderBy]: order.toLowerCase() as 'asc' | 'desc' },
|
||||
populate: ['category'],
|
||||
populate: ['attributes', 'attributes.values'],
|
||||
});
|
||||
|
||||
const totalPages = Math.ceil(total / limit);
|
||||
@@ -60,6 +60,5 @@ export class ProductRepository extends EntityRepository<Product> {
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user