This commit is contained in:
2026-04-07 15:30:09 +03:30
parent c573e9d1c0
commit 055ba55586
5 changed files with 18 additions and 36 deletions
@@ -128,7 +128,7 @@ export class RestaurantsService {
return restaurant;
}
async findOne(id: string): Promise<Restaurant> {
async findOneOrFail(id: string): Promise<Restaurant> {
const restaurant = await this.restRepository.findOne({ id });
if (!restaurant) {