Skip to content

Commit

Permalink
fix wrong url version in workdiary getByContract
Browse files Browse the repository at this point in the history
  • Loading branch information
mnovozhylov committed Jan 20, 2017
1 parent 4d0669d commit f44f2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routers/workdiary.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ exports.Workdiary.prototype.get = function(company, username, date, params, call
*/
exports.Workdiary.prototype.getByContract = function(contract, date, params, callback) {
debug('running request');
this.api.client.get('team/v1/workdiaries/contracts/' + contract + '/' + date, params, callback);
this.api.client.get('team/v2/workdiaries/contracts/' + contract + '/' + date, params, callback);
}

0 comments on commit f44f2fb

Please sign in to comment.