update rest

This commit is contained in:
2026-01-05 20:14:29 +03:30
parent 16ab3e668d
commit 69921e1bf9
@@ -136,7 +136,8 @@ export class RestaurantsService {
} }
async update(id: string, dto: UpdateRestaurantDto): Promise<Restaurant> { 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) { if (!restaurant) {
throw new NotFoundException(RestMessage.NOT_FOUND); throw new NotFoundException(RestMessage.NOT_FOUND);