From 41eca45e07495213309785a66c41b60a95e1f65b Mon Sep 17 00:00:00 2001 From: Nicholai Date: Mon, 20 Oct 2025 18:48:40 -0600 Subject: [PATCH] fix(artists): tolerate missing flash_items table to avoid 500s on artist fetch --- lib/db.ts | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/db.ts b/lib/db.ts index 6b4855879..e6256b284 100644 --- a/lib/db.ts +++ b/lib/db.ts @@ -164,12 +164,19 @@ export async function getArtistWithPortfolio(id: string, env?: any): Promise ({ + flashItems: flashRows.map(row => ({ id: row.id, artistId: row.artist_id, url: row.url,