Skip to content

Commit f60e7ed

Browse files
committed
feat: Updating participants function for issues
1 parent d2f344a commit f60e7ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/services/Issues.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Issues extends BaseService {
4646
});
4747
}
4848

49+
participants(projectId, issueId) {
50+
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);
51+
52+
return RequestHelper.get(this, `projects/${pId}/issues/${iId}/participants`);
53+
}
54+
4955
remove(projectId, issueId) {
5056
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);
5157

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

79-
participants(projectId, issueId) {
80-
const [pId, iId] = [projectId, issueId].map(encodeURIComponent);
81-
82-
return RequestHelper.get(this, `projects/${pId}/issues/${iId}/participants`);
83-
}
84-
8585
timeStats(projectId, mergerequestId) {
8686
const [pId, mId] = [projectId, mergerequestId].map(encodeURIComponent);
8787

0 commit comments

Comments
 (0)