foods and ctegory
This commit is contained in:
@@ -70,6 +70,10 @@ export class FoodService {
|
||||
return this.foodRepository.findAllPaginated(restId, dto);
|
||||
}
|
||||
|
||||
async findAllByRestaurant(restId: string): Promise<Food[]> {
|
||||
return this.foodRepository.find({ restaurant: { id: restId } });
|
||||
}
|
||||
|
||||
findOne(id: string) {
|
||||
return this.foodRepository.findOne({ id }, { populate: ['categories'] });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user