Bring initial proxy order processing closer

We want to make it one transaction soon.
This commit is contained in:
Maikel Linke
2021-12-14 10:50:08 +11:00
parent 7fdc2fdea2
commit ce0913758b

View File

@@ -13,8 +13,6 @@ class PlaceProxyOrder
def call
return unless initialise_order
mark_as_processed
summarizer.record_order(order)
return summarizer.record_issue(:complete, order) if order.completed?
@@ -43,6 +41,9 @@ class PlaceProxyOrder
summarizer.record_subscription_issue(subscription)
return false
end
mark_as_processed
true
rescue StandardError => e
Bugsnag.notify(e, subscription: subscription, proxy_order: proxy_order)