()
| 161 | } |
| 162 | |
| 163 | cleanup() { |
| 164 | // Don't release the connection if there's a parent transaction or |
| 165 | // if we've already cleaned up |
| 166 | if (this.parent || this.connection.uuid === undefined) return; |
| 167 | |
| 168 | this._clearCls(); |
| 169 | const res = this.sequelize.connectionManager.releaseConnection(this.connection); |
| 170 | this.connection.uuid = undefined; |
| 171 | return res; |
| 172 | } |
| 173 | |
| 174 | _clearCls() { |
| 175 | const cls = this.sequelize.constructor._cls; |
no test coverage detected