From 37561a6a18e5f5709731f72f3cbf5ef2e7e2d4d8 Mon Sep 17 00:00:00 2001 From: wagesj45 Date: Mon, 20 Apr 2026 13:36:28 -0500 Subject: [PATCH] Fix cloudFile account bootstrap --- src/cloudfile/provider.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/cloudfile/provider.js b/src/cloudfile/provider.js index b40c55d..8613b3f 100644 --- a/src/cloudfile/provider.js +++ b/src/cloudfile/provider.js @@ -14,7 +14,18 @@ export class CloudFileProvider { async initialize() { const accounts = await this.cloudFileApi.getAllAccounts(); - await Promise.all(accounts.map(account => this.ensureAccount(account))); + await Promise.all( + accounts.map(async account => { + try { + await this.ensureAccount(account); + } catch (caughtError) { + logError("Failed to synchronize cloudFile account state", { + accountId: account.id, + error: caughtError instanceof Error ? caughtError.message : String(caughtError) + }); + } + }) + ); } async ensureAccount(account) { @@ -24,7 +35,6 @@ export class CloudFileProvider { await this.cloudFileApi.updateAccount(account.id, { configured: isConfigured, managementUrl: this.managementUrlFor(account.id), - name: config?.displayName || account.name || "PsiTransfer", uploadSizeLimit: -1, spaceRemaining: -1, spaceUsed: -1