mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Update app/models/proxy_order.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user