Skip to content

Commit

Permalink
Merge pull request #101 from kulikulifoods/update-cart-guard
Browse files Browse the repository at this point in the history
Add a guard to `#update_mailchimp_cart`
  • Loading branch information
damianlegawiec authored May 20, 2020
2 parents 7f73e37 + 65877c0 commit 79a5b2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/spree_mailchimp_ecommerce/spree/order_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def mailchimp_order
end

def update_mailchimp_cart
return unless mailchimp_cart_created

::SpreeMailchimpEcommerce::UpdateOrderCartJob.perform_later(mailchimp_cart)
end

Expand Down

0 comments on commit 79a5b2a

Please sign in to comment.