A local-first personal finance app
Fix error when running importTransactions from the API (#819)
Jed Foxc025e516fb20
diff --git a/packages/desktop-client/e2e/onboarding.test.js b/packages/desktop-client/e2e/onboarding.test.jsindex 3295fd81a6..a0875be4a2 100644--- a/packages/desktop-client/e2e/onboarding.test.js+++ b/packages/desktop-client/e2e/onboarding.test.js@@ -29,7 +29,7 @@ test.describe('Onboarding', () => {path.resolve(__dirname, 'data/ynab4-demo-budget.zip'),);- await expect(budgetPage.budgetTable).toBeVisible();+ await expect(budgetPage.budgetTable).toBeVisible({ timeout: 30000 });const accountPage = await navigation.goToAccountPage('Account1 with Starting Balance',diff --git a/packages/loot-core/src/platform/server/connection/index.api.js b/packages/loot-core/src/platform/server/connection/index.api.jsindex 42336ad4c5..e457e8fc6f 100644--- a/packages/loot-core/src/platform/server/connection/index.api.js+++ b/packages/loot-core/src/platform/server/connection/index.api.js@@ -4,4 +4,8 @@ function send(type, args) {// Nothing}-module.exports = { init, send };+function getNumClients() {+ return 1;+}++module.exports = { init, send, getNumClients };diff --git a/packages/loot-core/src/platform/server/connection/index.web.js b/packages/loot-core/src/platform/server/connection/index.web.jsindex d80cff1ed8..8c9b4f658d 100644--- a/packages/loot-core/src/platform/server/connection/index.web.js+++ b/packages/loot-core/src/platform/server/connection/index.web.js@@ -112,6 +112,4 @@ function getNumClients() {return 1;}-function tapIntoAPI() {}--module.exports = { init, send, getNumClients, tapIntoAPI };+module.exports = { init, send, getNumClients };diff --git a/upcoming-release-notes/819.md b/upcoming-release-notes/819.mdnew file mode 100644index 0000000000..a08575c062--- /dev/null+++ b/upcoming-release-notes/819.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [j-f1]+---++Fix error when running importTransactions from the API