Skip to content

Commit

Permalink
Update user.model.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatsanos authored Sep 30, 2017
1 parent c5b984e commit 4f735fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/models/user.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ userSchema.method({
},

async passwordMatches(password) {
const matches = await bcrypt.compare(password, this.password);
return matches;
return await bcrypt.compare(password, this.password); // eslint-disable-line no-return-await
},
});

Expand Down

0 comments on commit 4f735fa

Please sign in to comment.