1
0
mirror of https://github.com/oceanprotocol/community-numbers.git synced 2024-12-22 17:23:31 +01:00

number response fix

This commit is contained in:
Matthias Kretschmann 2020-06-16 15:35:28 +02:00
parent 803984613b
commit b6b3c4459c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -30,7 +30,7 @@ export default async function fetchDiscord() {
) )
const membersElementText = membersElement.innerText const membersElementText = membersElement.innerText
const number = membersElementText.replace(' Members', '') const number = membersElementText.replace(' Members', '')
return number return parseInt(number)
}) })
log( log(
@ -39,5 +39,5 @@ export default async function fetchDiscord() {
`Elapsed: ${new Date() - start}ms` `Elapsed: ${new Date() - start}ms`
) )
return { members: Number(members) } return { members }
} }