From 53f49ba9d83a824c829ade59bf1a7ce68ead67dd Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Sun, 8 Feb 2026 21:31:59 -0500 Subject: [PATCH] Run bank sync in background to avoid gateway timeouts sync-now and sync-all now return 202 Accepted immediately and dispatch work to a background task. The frontend uses the existing SignalR BankSyncComplete notification to stop the spinner and display results. Co-Authored-By: Claude Opus 4.6 --- frontend/src/services/bankSync.ts | 4 +- frontend/src/views/settings/SettingsView.vue | 26 +++++++++---- .../Controllers/BankSyncController.cs | 37 ++++++++++++++++--- 3 files changed, 52 insertions(+), 15 deletions(-) diff --git a/frontend/src/services/bankSync.ts b/frontend/src/services/bankSync.ts index c0df41b..de179f1 100644 --- a/frontend/src/services/bankSync.ts +++ b/frontend/src/services/bankSync.ts @@ -47,10 +47,10 @@ export const bankSyncApi = { api.put(`/bank-sync/linked-accounts/${linkedAccountId}`, data), syncNow: (connectionId: string) => - api.post(`/bank-sync/connections/${connectionId}/sync-now`), + api.post(`/bank-sync/connections/${connectionId}/sync-now`), syncAll: () => - api.post('/bank-sync/sync-all'), + api.post('/bank-sync/sync-all'), getSyncLogs: (connectionId?: string, limit = 50) => api.get('/bank-sync/sync-logs', { diff --git a/frontend/src/views/settings/SettingsView.vue b/frontend/src/views/settings/SettingsView.vue index 7dfe909..8cd6ffb 100644 --- a/frontend/src/views/settings/SettingsView.vue +++ b/frontend/src/views/settings/SettingsView.vue @@ -514,12 +514,13 @@