fix: netlify func

This commit is contained in:
Cory Dransfeldt 2023-10-07 11:04:46 -07:00
parent 774f99e907
commit 76df6da0b2
2 changed files with 4 additions and 6 deletions

View file

@ -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'],