From 8b01eea4467a8b1d411dab44d9a9b9a66a0ad341 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 19 Nov 2021 13:35:12 +0100 Subject: [PATCH] [Key Connector] Resolve desktop not prompting to remove password (#558) --- common/src/services/sync.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/services/sync.service.ts b/common/src/services/sync.service.ts index 4b7ee9c4db8..8395ddcc87f 100644 --- a/common/src/services/sync.service.ts +++ b/common/src/services/sync.service.ts @@ -321,16 +321,16 @@ export class SyncService implements SyncServiceAbstraction { } }); + await Promise.all([ + this.userService.replaceOrganizations(organizations), + this.userService.replaceProviders(providers), + ]); + if (await this.keyConnectorService.userNeedsMigration()) { this.messagingService.send('convertAccountToKeyConnector'); } else { this.keyConnectorService.removeConvertAccountRequired(); } - - return Promise.all([ - this.userService.replaceOrganizations(organizations), - this.userService.replaceProviders(providers), - ]); } private async syncFolders(userId: string, response: FolderResponse[]) {