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