Fixed GitHub release downloads, run [GithubDownloads] (#3256)

* fixed github release downloads

* npm run prettier code push.

* master package-lock.json file
This commit is contained in:
Denis Duliçi
2019-04-04 01:28:48 +03:00
committed by Caleb Cartwright
parent 7f24e93671
commit 48e454c63d

View File

@@ -155,7 +155,10 @@ module.exports = class GithubDownloads extends LegacyService {
if (releasePath) {
apiUrl = `${apiUrl}/${releasePath}`
}
} else {
apiUrl = `${apiUrl}?per_page=500`
}
const badgeData = getBadgeData('downloads', data)
if (badgeData.template === 'social') {
badgeData.logo = getLogo('github', data)