mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Fix edge case and some specs in post checkout actions
This commit is contained in:
@@ -29,6 +29,8 @@ module Checkout
|
||||
end
|
||||
|
||||
def set_customer_terms_and_conditions_accepted_at(params)
|
||||
return unless params[:order]
|
||||
|
||||
@order.customer.update(terms_and_conditions_accepted_at: Time.zone.now) if params[:order][:terms_and_conditions_accepted]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user