chore: consistent syntax for data access
This commit is contained in:
parent
2a08c3365a
commit
f20ff5d6ec
4 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ module.exports = async function () {
|
|||
type: 'json',
|
||||
}).catch()
|
||||
const data = await res
|
||||
return data['topalbums'].album.map((album) => {
|
||||
return data['topalbums']['album'].map((album) => {
|
||||
return {
|
||||
title: album['name'],
|
||||
artist: album['artist']['name'],
|
||||
|
|
Reference in a new issue