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();