Skip to content

Commit

Permalink
Fix(user): correct the return name
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhannedNoman committed Oct 18, 2020
1 parent 01c52a1 commit 51050bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ userSchema.methods.generateAuthToken = function () {
_id: this._id,
isAdmin: this.isAdmin,
email: this.email,
name: this.email,
name: this.name,
},
env.JWT_SECRET_KEY
);
Expand Down

0 comments on commit 51050bb

Please sign in to comment.