fix: apm badge dl & stars count at 0

pull/93/head
Amio 2018-08-08 21:43:50 +08:00
rodzic 7a5f06fcc5
commit ec0fc501fb
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -46,14 +46,14 @@ async function pkg (topic, args) {
case 'downloads': {
return {
subject: 'downloads',
status: millify(meta.downloads) || 'unknown',
status: millify(meta.downloads),
color: 'green'
}
}
case 'stars': {
return {
subject: 'stars',
status: millify(meta.stargazers_count) || 'unknown',
status: millify(meta.stargazers_count),
color: 'green'
}
}