Skip to content
This repository has been archived by the owner on Jan 5, 2025. It is now read-only.

Commit

Permalink
only update if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
rodriguestiago0 committed Jun 25, 2024
1 parent 4ffb0e2 commit 544b831
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ async function importMyEdenredTransactions() {
for (let [edenredAccountId, actualAccountID] of Object.entries(edenredMapping)) {
console.info("Importing transactions for account ", edenredAccountId)
var mappedtransactions = await getTransactions(edenredAccountId)
if (mappedtransactions.length == 0) {
console.info("No imported transactions");
continue;
}
await importTransactions(actual, actualAccountID, mappedtransactions);
};

Expand Down

0 comments on commit 544b831

Please sign in to comment.