Update app/services/order_available_payment_methods.rb

Co-authored-by: jibees <jb.bellet@gmail.com>
This commit is contained in:
Mohamed ABDELLANI
2022-12-10 11:51:35 +01:00
committed by GitHub
parent e20e519201
commit 9fbdb311b0

View File

@@ -36,7 +36,8 @@ class OrderAvailablePaymentMethods
end
def available_distributor_payment_methods_ids
order_cycle.distributor_payment_methods.where(distributor_id: distributor.id)
order_cycle.distributor_payment_methods
.where(distributor_id: distributor.id)
.select(:payment_method_id)
end
end