From ded6489edf7a84775cdc09397bcf4bb7aef0c110 Mon Sep 17 00:00:00 2001 From: Casey Timm Date: Sat, 26 Jul 2025 09:15:29 -0400 Subject: [PATCH] better pending handling --- src/lib/united.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/united.js b/src/lib/united.js index 181ac8d..46709af 100644 --- a/src/lib/united.js +++ b/src/lib/united.js @@ -183,7 +183,7 @@ export async function pullData(amount = 100) { let currentPend = 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); + const found = transactions.find((t) => `${t.postedDate}:${t.amount}` === pend.id); state.push( `Pending transaction: ${pend.id} ${pend.description} ${pend.amount} on ${pend.date} found: ${found ? 'yes' : 'no'}` );