fix: feed data

This commit is contained in:
Cory Dransfeldt 2024-09-14 21:31:54 -07:00
parent 99283e731a
commit 427a73cd94
No known key found for this signature in database
6 changed files with 17 additions and 18 deletions

View file

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

View file

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