A local-first personal finance app
[AI] fix(api): trigger SimpleFin batch sync with a single account (#8052)
dzickusrh734b1b5901c0
diff --git a/packages/loot-core/src/server/api.ts b/packages/loot-core/src/server/api.tsindex 5f51b30896..e38bc5d166 100644--- a/packages/loot-core/src/server/api.ts+++ b/packages/loot-core/src/server/api.ts@@ -278,7 +278,7 @@ handlers['api/bank-sync'] = async function (args) {);const simpleFinAccountIds = simpleFinAccounts.map(a => a.id);- if (simpleFinAccounts.length > 1) {+ if (simpleFinAccounts.length >= 1) {const res = await handlers['simplefin-batch-sync']({ids: simpleFinAccountIds,});diff --git a/upcoming-release-notes/8052.md b/upcoming-release-notes/8052.mdnew file mode 100644index 0000000000..9008d47a8a--- /dev/null+++ b/upcoming-release-notes/8052.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [dzickusrh]+---++Fix api/bank-sync to work on accounts with a single SimpleFin account