'Heroku won't execute db inserts in catch statment
We're trying to deal with Stripe error throws and I was wondering if anyone could tell me why db inserts won't execute in a catch statement on production though it works on our development server. Or if anyone knows where we turn off the feature in our heroku production stack?
catch(err){
await SomeCollection.create({
value: somevalue
});
throw new Error(err);
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
