MCPcopy
hub / github.com/sequelize/sequelize / _clearCls

Method _clearCls

lib/transaction.js:174–182  ·  lib/transaction.js::Transaction._clearCls
()

Source from the content-addressed store, hash-verified

172 }
173
174 _clearCls() {
175 const cls = this.sequelize.constructor._cls;
176
177 if (cls) {
178 if (cls.get(class="st">'transaction') === this) {
179 cls.set(class="st">'transaction', null);
180 }
181 }
182 }
183
184 /**
185 * A hook that is run after a transaction is committed

Callers 1

cleanupMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected