update rest
This commit is contained in:
@@ -136,7 +136,8 @@ export class RestaurantsService {
|
||||
}
|
||||
|
||||
async update(id: string, dto: UpdateRestaurantDto): Promise<Restaurant> {
|
||||
const restaurant = await this.restRepository.findOne({ id });
|
||||
|
||||
const restaurant = await this.restRepository.findOne({ id: id });
|
||||
|
||||
if (!restaurant) {
|
||||
throw new NotFoundException(RestMessage.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user