MCPcopy
hub / github.com/sequelize/sequelize / afterCommit

Method afterCommit

src/transaction.js:218–223  ·  view source on GitHub ↗

* A hook that is run after a transaction is committed * * @param {Function} fn A callback function that is called with the committed transaction * @name afterCommit * @memberof Sequelize.Transaction

(fn)

Source from the content-addressed store, hash-verified

216 * @memberof Sequelize.Transaction
217 */
218 afterCommit(fn) {
219 if (!fn || typeof fn !== 'function') {
220 throw new Error('"fn" must be a function');
221 }
222 this._afterCommitHooks.push(fn);
223 }
224
225 /**
226 * Types can be set per-transaction by passing `options.type` to `sequelize.transaction`.

Callers 5

transFunction · 0.80
trans2Function · 0.80
trans3Function · 0.80
trans4Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected