surface malformed seen tender history
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user