You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be changed to function(){} because "this" points to global scope, not function scope in arrow functions. In this case use function(){} instead
The text was updated successfully, but these errors were encountered:
EdgarMC100
changed the title
Arrow functions "this" scope used as callback in UserSChema.pre(string,callback)
Arrow function "this" scope used as callback UserSchema.pre(string,callback) in User Model
Jul 31, 2020
Should be changed to function(){} because "this" points to global scope, not function scope in arrow functions. In this case use function(){} instead
The text was updated successfully, but these errors were encountered: