Skip to content

Commit a59d766

Browse files
author
Ashish Kumar
committed
removed deprecatedwarning
1 parent db2730a commit a59d766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/models/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ UserSchema.statics.findByCredentials = function (email, password) {
8080
UserSchema.methods.removeToken = function(token) {
8181
var user = this;
8282

83-
return user.update({
83+
return user.updateOne({
8484
$pull:{
8585
tokens: {token}
8686
}

0 commit comments

Comments
 (0)