Skip to content

Commit

Permalink
debug sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-fidd committed Jan 2, 2025
1 parent 928260c commit 7e77b97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/loot-core/src/server/accounts/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ export async function batchUpdateTransactions({
addedIds = await Promise.all(
added.map(async t => {
const account = accounts.find(acct => acct.id === t.account);

if (!account) console.log(t);

if (account.offbudget === 1) {
t.category = null;
}

return db.insertTransaction(t);
}),
);
Expand Down

0 comments on commit 7e77b97

Please sign in to comment.