Skip to content

Commit

Permalink
Change static this to class reference (#13510)
Browse files Browse the repository at this point in the history
Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
  • Loading branch information
mancebo29 and sdepold committed Oct 3, 2021
1 parent 15964b1 commit 0726ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0726ede

Please sign in to comment.