Files
actual-helpers/sync-banks.js
T
2024-06-19 11:39:16 -05:00

14 lines
319 B
JavaScript

// 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();
})();