Update app/models/proxy_order.rb

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Matt-Yorkley
2021-09-09 13:39:08 +02:00
committed by GitHub
parent 1d5077061e
commit b352476301

View File

@@ -33,7 +33,7 @@ class ProxyOrder < ApplicationRecord
end
def cancel
return false unless order_cycle.orders_close_at&.send(:>, Time.zone.now)
return false unless order_cycle.orders_close_at&. > Time.zone.now
transaction do
update_column(:canceled_at, Time.zone.now)