add sync-banks script

This commit is contained in:
Robert Dyer
2024-06-19 11:39:16 -05:00
parent 852d83c1d9
commit 8ad16c8b8f
2 changed files with 31 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
// Script to run all bank syncs
// Useful for running bank syncs on a daily/weekly schedule
const { closeBudget, openBudget } = require('./utils');
const api = require('@actual-app/api');
(async () => {
await openBudget();
console.log("syncing banks...");
await api.runBankSync();
await closeBudget();
})();