From 846431ca1778980fc61ec61d20163bd6d35d262a Mon Sep 17 00:00:00 2001 From: ht Date: Sun, 6 Sep 2026 17:40:12 +0300 Subject: [PATCH] surface malformed seen tender history --- server/notify-store.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/notify-store.mjs b/server/notify-store.mjs index 7909b44..6916ca1 100644 --- a/server/notify-store.mjs +++ b/server/notify-store.mjs @@ -171,7 +171,7 @@ export function list(email) { initialized: r.sonGorulenler !== null, deliveryPending:!!db.prepare("SELECT id FROM notification_outbox WHERE subscription_id=? AND state IN ('pending','sending','uncertain')").get(r.id), deliveryStatus:db.prepare("SELECT state,error FROM notification_outbox WHERE subscription_id=? AND state IN ('pending','sending','uncertain')").get(r.id) || null, - sonGorulenler: (() => { try { return JSON.parse(r.sonGorulenler || '[]'); } catch { return []; } })(), + sonGorulenler: parseArrayJson(r.sonGorulenler, 'Görülen ihale'), })); } finally { db.close();