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

Method afterCommit

lib/transaction.js:191–196  ·  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

189 * @memberof Sequelize.Transaction
190 */
191 afterCommit(fn) {
192 if (!fn || typeof fn !== 'function') {
193 throw new Error('"fn" must be a function');
194 }
195 this._afterCommitHooks.push(fn);
196 }
197
198 /**
199 * 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