mt restaurent
This commit is contained in:
@@ -38,6 +38,16 @@ export class RestaurantsService {
|
||||
return restaurant;
|
||||
}
|
||||
|
||||
async findOne(id: string): Promise<Restaurant> {
|
||||
const restaurant = await this.restRepository.findOne({ id });
|
||||
|
||||
if (!restaurant) {
|
||||
throw new NotFoundException(RestMessage.NOT_FOUND);
|
||||
}
|
||||
|
||||
return restaurant;
|
||||
}
|
||||
|
||||
async getRestaurantSpecification(slug: string): Promise<RestaurantSpecificationDto> {
|
||||
const restaurant = await this.findBySlug(slug);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user