1
0
mirror of https://github.com/oceanprotocol/community-numbers.git synced 2024-11-21 17:27:01 +01:00

removed await from response.data

This commit is contained in:
Norbert 2021-11-09 11:04:05 +02:00
parent 9f5dd000dd
commit 0ca44119f5
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ const getGitcoin = async () => {
return null
}
const total = await response.data
const total = response.data
const open = total.filter((item) => item.is_open === true)
return { total: total.length, open: open.length }

View File

@ -7,7 +7,7 @@ export default async function fetchDiscord() {
const start = Date.now()
const response = await axios.get(url)
const body = await response.data
const body = response.data
const data = await load(body, { normalizeWhitespace: true })
// extract members count from meta description

View File

@ -24,7 +24,7 @@ export default async function fetchGitHubRepos() {
return null
}
const json = await response.data
const json = response.data
const numbers = json.map((item) => item.stargazers_count)
const stars = arrSum(numbers)
const repositories = json.length

View File

@ -11,7 +11,7 @@ export default async function fetchMedium() {
return null
}
const responseText = await response.data
const responseText = response.data
const json = await JSON.parse(responseText.replace('])}while(1);</x>', ''))
const { collection } = json.payload

View File

@ -12,7 +12,7 @@ export default async function fetchTwitter() {
return null
}
const json = await response.data
const json = response.data
const followers = json[0].followers_count
log(