fix: feed data
This commit is contained in:
parent
99283e731a
commit
427a73cd94
6 changed files with 17 additions and 18 deletions
|
@ -30,6 +30,7 @@ const fetchAlbumReleases = async () => {
|
|||
artist: album['artist_name'],
|
||||
title: album['name'],
|
||||
date: releaseDate.toLocaleString(DateTime.DATE_FULL),
|
||||
description: 'Check out the new release!',
|
||||
url: album['release_link'],
|
||||
image: album['art'] ? `/${album['art']}` : '',
|
||||
total_plays: album['total_plays'],
|
||||
|
|
|
@ -47,6 +47,7 @@ const fetchAllConcerts = async () => {
|
|||
const processConcerts = (concerts) => {
|
||||
return concerts.map(concert => ({
|
||||
id: concert['id'],
|
||||
type: 'concert',
|
||||
date: concert['date'],
|
||||
artistNameString: concert['artist_name_string'],
|
||||
venue: {
|
||||
|
@ -56,6 +57,7 @@ const processConcerts = (concerts) => {
|
|||
boundingBox: concert['bounding_box'],
|
||||
notes: concert['venue_notes']
|
||||
},
|
||||
description: 'I went to (yet another) concert!',
|
||||
notes: concert['concert_notes'],
|
||||
artist: concert['artist'] ? {
|
||||
name: concert['artist_name'],
|
||||
|
|
Reference in a new issue