Skip to content

Commit

Permalink
fix nodejs6 hasownperperty not function
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhutu committed Sep 30, 2016
1 parent 50d9dca commit c9da5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/auth/auth.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const User = mongoose.model('User');
function authToken() {
return compose([
function *(next) {
if(this.query && this.query.hasOwnProperty('access_token')){
if(this.query && this.query.access_token){
this.headers.authorization = 'Bearer ' + this.query.access_token;
}
yield next;
Expand Down

0 comments on commit c9da5e5

Please sign in to comment.