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