Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #17 from miyajan/fix-list-projects
Browse files Browse the repository at this point in the history
fix(projects): fix names of optional parameters in list projects
  • Loading branch information
miyajan committed Jan 26, 2017
2 parents ca73fff + 8833394 commit 4d09db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class Projects extends Base {
list(opt_org, opt_team) {
const params = {};
if (opt_org !== undefined) {
params['orga'] = opt_org;
params['orga_name'] = opt_org;
}
if (opt_team !== undefined) {
params['team'] = opt_team;
params['team_name'] = opt_team;
}
const path = this.buildPathWithQuery('/projects', params);
return this.request('GET', path);
Expand Down

0 comments on commit 4d09db2

Please sign in to comment.