up
This commit is contained in:
@@ -67,8 +67,8 @@ export class RestaurantPaymentMethodService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async findByPaymentMethod(restPaymentMethodId: string): Promise<RestaurantPaymentMethod[]> {
|
async findByPaymentMethod(restPaymentMethodId: string): Promise<RestaurantPaymentMethod | null> {
|
||||||
return this.restaurantPaymentMethodRepository.find(
|
return this.restaurantPaymentMethodRepository.findOneOrFail(
|
||||||
{ id: restPaymentMethodId },
|
{ id: restPaymentMethodId },
|
||||||
{ populate: ['restaurant', 'paymentMethod'] },
|
{ populate: ['restaurant', 'paymentMethod'] },
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user