Join Slack
Powered by
Does it make sense to update the DB in the catch b...
# orm-help
a
Aaron Fulkerson
10/29/2020, 10:09 PM
Does it make sense to update the DB in the catch block if previous asynchronous code fails? What I’m doing is calling update then a Stripe function. If the call to the Stripe function fails I want to revert the update to the DB.
r
Ryan
10/30/2020, 6:22 AM
I think that should be fine.
👍 1
Open in Slack
Previous
Next