fix: netlify func
This commit is contained in:
parent
774f99e907
commit
76df6da0b2
2 changed files with 4 additions and 6 deletions
|
@ -12,8 +12,7 @@ export default async () => {
|
|||
})
|
||||
.then((data) => data.json())
|
||||
.catch()
|
||||
const trackData = await trackRes.json()
|
||||
const track = trackData['attributes'][0]
|
||||
const track = trackRes.data[0]['attributes']
|
||||
|
||||
return Response.json({
|
||||
artist: track['artistName'],
|
||||
|
|
Reference in a new issue