some better logging here
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user