0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Retry API request when buildAboutPage gets 202

No Issue.
- top-gh-contribs@1.0.0.
- Enable 'retry' option which will retry the GitHub API request
  in the event it receives a status of 202 (retry momentarily).
This commit is contained in:
Jason Williams 2015-02-05 18:52:53 +00:00
parent 6005bc732d
commit e0e39aa160
2 changed files with 3 additions and 2 deletions

View file

@ -1043,7 +1043,8 @@ var _ = require('lodash'),
repo: 'ghost',
oauthKey: oauthKey,
releaseDate: ninetyDaysAgo,
count: 20
count: 20,
retry: true
})
).then(function (results) {
var contributors = results[1],

View file

@ -102,6 +102,6 @@
"sinon": "~1.12.2",
"supertest": "~0.15.0",
"testem": "^0.6.23",
"top-gh-contribs": "0.0.6"
"top-gh-contribs": "^1.0.0"
}
}