We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 349ffe9 commit 7b132cfCopy full SHA for 7b132cf
lib/model.js
@@ -319,7 +319,14 @@ class Model extends Entity {
319
if (internalTransaction) {
320
// If we created the Transaction instance internally for the update, we commit it
321
// otherwise we leave the commit() call to the transaction creator
322
- return transaction.commit().then(onTransactionSuccess);
+ return transaction
323
+ .commit()
324
+ .then(() => transaction.execPostHooks().catch((err) => {
325
+ entityUpdated[
326
+ entityUpdated.gstore.ERR_HOOKS
327
+ ] = (entityUpdated[entityUpdated.gstore.ERR_HOOKS] || []).push(err);
328
+ }))
329
+ .then(onTransactionSuccess);
330
}
331
332
return onTransactionSuccess();
0 commit comments