mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
void transactions in memory instead of fetching from db
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -615,7 +615,7 @@ module Spree
|
||||
def cancel_payments_requiring_auth
|
||||
return unless payment_state == "paid"
|
||||
|
||||
payments.requires_authorization.each(&:void_transaction!)
|
||||
payments.to_a.select(&:requires_authorization?).each(&:void_transaction!)
|
||||
end
|
||||
|
||||
def fee_handler
|
||||
|
||||
Reference in New Issue
Block a user