(api) ability to run bank sync via the API (#2683)

This commit is contained in:
Matiss Janis Aboltins
2024-05-16 08:28:58 +01:00
committed by GitHub
parent e5933ad8cd
commit f8352808c4
8 changed files with 34 additions and 6 deletions

View File

@@ -35,6 +35,10 @@ export async function sync() {
return send('api/sync');
}
export async function runBankSync(args?: { accountId: string }) {
return send('api/bank-sync', args);
}
export async function batchBudgetUpdates(func) {
await send('api/batch-budget-start');
try {