clean
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user