From 07b49bfc582ab2cc405cd482c13b0c8bac4b7c81 Mon Sep 17 00:00:00 2001 From: pfych Date: Sat, 17 Aug 2024 19:55:46 +1000 Subject: [PATCH] Correctly handle case where a song has no credited artist --- database-seeds/scripts/rerunners/gitadora/parse-mdb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-seeds/scripts/rerunners/gitadora/parse-mdb.ts b/database-seeds/scripts/rerunners/gitadora/parse-mdb.ts index 17253aad3c..66e56bd280 100644 --- a/database-seeds/scripts/rerunners/gitadora/parse-mdb.ts +++ b/database-seeds/scripts/rerunners/gitadora/parse-mdb.ts @@ -116,7 +116,7 @@ const PLAYTYPE_DIFFICULTY_MAP: (Playtypes["gitadora"] | null)[] = [ function buildSong(entry: Entry): SongDocument<"gitadora"> { return { - artist: entry.artist_title_ascii["#text"], + artist: entry.artist_title_ascii["#text"] || "", title: entry.title_name["#text"], id: entry.music_id["#text"], altTitles: [],