order foods and categories
This commit is contained in:
@@ -37,7 +37,8 @@ export class CategoryService {
|
||||
if (!restaurant || !restaurant.id) {
|
||||
throw new NotFoundException(RestMessage.NOT_FOUND);
|
||||
}
|
||||
return this.categoryRepository.find({ restaurant: restaurant, isActive: true });
|
||||
return this.categoryRepository.find(
|
||||
{ restaurant: restaurant, isActive: true }, { orderBy: { order: 'ASC' } });
|
||||
}
|
||||
|
||||
async findAllByRestaurantId(restId: string): Promise<Category[]> {
|
||||
|
||||
Reference in New Issue
Block a user