chore: consistent syntax for data access

This commit is contained in:
Cory Dransfeldt 2023-08-15 16:32:20 -07:00
parent 2a08c3365a
commit f20ff5d6ec
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ module.exports = async function () {
type: 'json',
}).catch()
const data = await res
return data['topartists'].artist.map((artist) => {
return data['topartists']['artist'].map((artist) => {
return {
title: artist['name'],
plays: artist['playcount'],