fix(repo): pass optionalPrivateToken to recursive calls (#258)

This commit is contained in:
Andrew Lisowski 2020-04-17 10:20:41 -07:00 committed by GitHub
parent a6715074de
commit db5d731d96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,9 +66,11 @@ function getContributorsPage(githubUrl, optionalPrivateToken) {
const nextLink = getNextLink(res.headers.link)
if (nextLink) {
return getContributorsPage(nextLink).then(nextContributors => {
return contributorsIds.concat(nextContributors)
})
return getContributorsPage(nextLink, optionalPrivateToken).then(
nextContributors => {
return contributorsIds.concat(nextContributors)
},
)
}
return contributorsIds