From cbbd442d64513f25a00059b66be2a0e51244e8a9 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Thu, 1 Aug 2024 13:26:55 -0700 Subject: [PATCH] chore: property names --- package-lock.json | 4 ++-- package.json | 2 +- src/data/concerts.js | 9 +++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 413d5bcf..f92bdf0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "21.1.1", + "version": "21.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "21.1.1", + "version": "21.1.2", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.4.0", diff --git a/package.json b/package.json index 30f11343..5f436eb8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "21.1.1", + "version": "21.1.2", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "scripts": { diff --git a/src/data/concerts.js b/src/data/concerts.js index 145075ba..3d908d1a 100644 --- a/src/data/concerts.js +++ b/src/data/concerts.js @@ -46,26 +46,23 @@ const fetchAllConcerts = async () => { const processConcerts = (concerts) => { return concerts.map(concert => ({ - id: concert['id'], date: concert['date'], - artist_name_string: concert['artist_name_string'], + artistNameString: concert['artist_name_string'], venue: { - id: concert['venue'], name: concert['venue_name'], latitude: concert['latitude'], longitude: concert['longitude'], - bounding_box: concert['bounding_box'], + boundingBox: concert['bounding_box'], notes: concert['venue_notes'] }, notes: concert['concert_notes'], artist: concert['artist'] ? { - id: concert['artist'], name: concert['artist_name'], mbid: concert['artist_mbid'], country: parseCountryField(concert['artist_country']) } : null, url: `/concerts/${concert['id']}`, - artist_url: concert['artist'] ? `/music/artists/${sanitizeMediaString(concert['artist_name'])}-${sanitizeMediaString(parseCountryField(concert['artist_country']))}` : null + artistUrl: concert['artist'] ? `/music/artists/${sanitizeMediaString(concert['artist_name'])}-${sanitizeMediaString(parseCountryField(concert['artist_country']))}` : null })) }