From a5c0d0daefd0b0ca8c680b5456a682a8f2aea5c2 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 9 Oct 2023 15:56:22 -0700 Subject: [PATCH] chore: formatting consistency --- netlify/edge-functions/now-playing.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netlify/edge-functions/now-playing.js b/netlify/edge-functions/now-playing.js index 0b79167f..e1d270e2 100644 --- a/netlify/edge-functions/now-playing.js +++ b/netlify/edge-functions/now-playing.js @@ -1,3 +1,5 @@ +const { aliasArtist } = require('../../src/utils/media') + export default async () => { // eslint-disable-next-line no-undef const API_APPLE_MUSIC_DEVELOPER_TOKEN = Netlify.env.get('API_APPLE_MUSIC_DEVELOPER_TOKEN') @@ -48,9 +50,9 @@ export default async () => { const track = trackRes.data[0]['attributes'] return Response.json({ - artist: track['artistName'], + artist: aliasArtist(track['artistName']), title: track['name'], - text: `🎧 ${track['name']} by ${track['artistName']}`, + text: `🎧 ${track['name']} by ${aliasArtist(track['artistName'])}`, }) }