不要怂,就是干,撸起袖子干!

Commit 0726ede5 by Jairo Mancebo Committed by GitHub

Change static this to class reference (#13510)

Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
1 parent 15964b13
Showing with 1 additions and 1 deletions
......@@ -1121,7 +1121,7 @@ class Sequelize {
if (!ns || typeof ns !== 'object' || typeof ns.bind !== 'function' || typeof ns.run !== 'function') throw new Error('Must provide CLS namespace');
// save namespace as `Sequelize._cls`
this._cls = ns;
Sequelize._cls = ns;
// return Sequelize for chaining
return this;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!