mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-12-22 09:13:24 +01:00
number response fix
This commit is contained in:
parent
803984613b
commit
b6b3c4459c
@ -30,7 +30,7 @@ export default async function fetchDiscord() {
|
||||
)
|
||||
const membersElementText = membersElement.innerText
|
||||
const number = membersElementText.replace(' Members', '')
|
||||
return number
|
||||
return parseInt(number)
|
||||
})
|
||||
|
||||
log(
|
||||
@ -39,5 +39,5 @@ export default async function fetchDiscord() {
|
||||
`Elapsed: ${new Date() - start}ms`
|
||||
)
|
||||
|
||||
return { members: Number(members) }
|
||||
return { members }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user