mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-12-23 01:29:49 +01:00
faster github stars count
This commit is contained in:
parent
87971dff2c
commit
abc037903c
@ -25,16 +25,7 @@ export default async function fetchGitHubRepos() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const json = await response.json()
|
const json = await response.json()
|
||||||
|
const numbers = json.map((item) => item.stargazers_count)
|
||||||
const numbers = []
|
|
||||||
|
|
||||||
json.map((item) => {
|
|
||||||
if (item.stargazers_count) {
|
|
||||||
return numbers.push(item.stargazers_count)
|
|
||||||
}
|
|
||||||
return null
|
|
||||||
})
|
|
||||||
|
|
||||||
const stars = arrSum(numbers)
|
const stars = arrSum(numbers)
|
||||||
const repositories = json.length
|
const repositories = json.length
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user