Skip to content

Commit 1483fdb

Browse files
committed
fix: update transaction notes to use memo instead of status
1 parent a633cb5 commit 1483fdb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
5454
amount: actual.utils.amountToInteger(x.chargedAmount),
5555
payee: _.find(payees, {name: x.description})?.id ?? (await actual.createPayee({name: x.description})),
5656
imported_payee: x.description,
57-
notes: x.status,
57+
notes: x.memo,
5858
imported_id: `${x.identifier}-${moment(x.date).format('YYYY-MM-DD HH:mm:ss')}`,
5959
}));
6060

61+
// Print first 5 mapped transactions for debugging
62+
log('MAPPED_TRANSACTIONS_SAMPLE', {sample: await Promise.all(mappedTransactions.slice(0, 5))});
63+
6164
stdout.mute();
6265
const importResult = await actual.importTransactions(bank.actualAccountId, await Promise.all(mappedTransactions), {defaultCleared: true});
6366
stdout.unmute();

0 commit comments

Comments
 (0)