From cf6fed50d340d99d8097683da97bf3d552714f93 Mon Sep 17 00:00:00 2001 From: Casey Timm Date: Sat, 26 Jul 2025 09:12:18 -0400 Subject: [PATCH] some better logging here --- src/lib/united.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/united.js b/src/lib/united.js index c3182f9..181ac8d 100644 --- a/src/lib/united.js +++ b/src/lib/united.js @@ -184,6 +184,9 @@ export async function pullData(amount = 100) { await db`SELECT id, amount, description, date from transaction where account_id = ${account.id} AND pending=true`; for (const pend of currentPend) { const found = transactions.find((t) => t.transactionId === pend.id); + state.push( + `Pending transaction: ${pend.id} ${pend.description} ${pend.amount} on ${pend.date} found: ${found ? 'yes' : 'no'}` + ); if (!found) { const updated = transactions.find( (t) => t.amount == pend.amount && new Date(t.postedDate) == pend.date