* 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)
| 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`. |
no outgoing calls
no test coverage detected