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