Skip to content

Commit

Permalink
replace path query with arrow function to bind this
Browse files Browse the repository at this point in the history
  • Loading branch information
naxmefy committed Mar 22, 2016
1 parent 4e97586 commit 84b34ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/dwh-api/dwh-api-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = class DwhApiService {
const queryMethod = `query${actionKey}${methodKey}`;

this.debug('setup %s for %s', queryMethod, m);
this[queryMethod] = function(token, data, suffix, transformFn, transformErr) {
this[queryMethod] = (token, data, suffix, transformFn, transformErr) => {
return this.query(token, data, action, m, suffix, transformFn, transformErr);
};
this._methods[m] = this[queryMethod];
Expand Down

0 comments on commit 84b34ea

Please sign in to comment.