diff options
author | Cédric Couralet | 2018-10-09 07:04:04 +0000 |
---|---|---|
committer | Cédric Couralet | 2018-10-09 07:04:04 +0000 |
commit | d7987def7f8f83b6ded8af32cff8416bfa9552bc (patch) | |
tree | 6f4c43d011dc96c69b3a95bd60aa73b3940bd0d0 | |
parent | 466dc9bc21305c51bd954eb19269485ea9d94bb5 (diff) |
Fix #1001: get only project user is member of (and return max of results)
Signed-off-by: Cédric Couralet <cedric.couralet@gmail.com>
-rw-r--r-- | lib/response.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index 9f1740c8..4f572e47 100644 --- a/lib/response.js +++ b/lib/response.js @@ -591,7 +591,7 @@ function gitlabActionProjects (req, res, note) { ret.accesstoken = user.accessToken ret.profileid = user.profileid request( - config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?access_token=' + user.accessToken, + config.gitlab.baseURL + '/api/' + config.gitlab.version + '/projects?membership=yes&per_page=100&access_token=' + user.accessToken, function (error, httpResponse, body) { if (!error && httpResponse.statusCode === 200) { ret.projects = JSON.parse(body) |