Skip to content

Commit

Permalink
added synchronisation
Browse files Browse the repository at this point in the history
  • Loading branch information
prizrak1609 committed Feb 27, 2025
1 parent 7aa15cf commit a2c4730
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mono_actual.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ async function fetch_data() {
console.error(error);
});

await actualApi.sync()

// accounts = [
// {
// "id":"19525deb-b8d8-4681-af43-69ddc3d7110e",
Expand Down Expand Up @@ -273,6 +275,7 @@ async function fetch_data() {
TOTAL_DAYS_SYNC -= DEFAULT_DAYS_SYNC;
}

await actualApi.sync()
await actualApi.shutdown();
};

Expand Down

0 comments on commit a2c4730

Please sign in to comment.