Skip to content

Commit

Permalink
feat: Updating participants function for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Jul 23, 2018
1 parent d2f344a commit f60e7ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/services/Issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class Issues extends BaseService {
});
}

participants(projectId, issueId) {
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);

return RequestHelper.get(this, `projects/${pId}/issues/${iId}/participants`);
}

remove(projectId, issueId) {
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);

Expand Down Expand Up @@ -76,12 +82,6 @@ class Issues extends BaseService {
return RequestHelper.post(this, `projects/${pId}/issues/${iId}/subscribe`, options);
}

participants(projectId, issueId) {
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);

return RequestHelper.get(this, `projects/${pId}/issues/${iId}/participants`);
}

timeStats(projectId, mergerequestId) {
const [pId, mId] = [projectId, mergerequestId].map(encodeURIComponent);

Expand Down

0 comments on commit f60e7ed

Please sign in to comment.