Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matiss Janis Aboltins <[email protected]>
  • Loading branch information
twk3 and MatissJanis committed Nov 22, 2023
1 parent f69b0ba commit eab40ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/api/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export function addTransactions(
return send('api/transactions-add', {
accountId,
transactions,
learnCategories: learnCategories,
runTransfers: runTransfers,
learnCategories,
runTransfers,
});
}

Expand Down
4 changes: 2 additions & 2 deletions packages/loot-core/src/server/accounts/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,8 @@ export async function addTransactions(
if (runTransfers || learnCategories) {
let res = await batchUpdateTransactions({
added,
learnCategories: learnCategories,
runTransfers: runTransfers,
learnCategories,
runTransfers,
});
newTransactions = res.added.map(t => t.id);
} else {
Expand Down
4 changes: 2 additions & 2 deletions packages/loot-core/src/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ handlers['api/transactions-add'] = withMutation(async function ({
}) {
checkFileOpen();
await addTransactions(accountId, transactions, {
runTransfers: runTransfers,
learnCategories: learnCategories,
runTransfers,
learnCategories,
});
return 'ok';
});
Expand Down

0 comments on commit eab40ba

Please sign in to comment.