surface malformed seen tender history

This commit is contained in:
2026-09-06 17:40:12 +03:00
parent 0d5794a44b
commit 846431ca17
+1 -1
View File
@@ -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();