From 33cf77559fcd8059c1576d3860cdda31e83dada5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 8 Aug 2018 13:41:39 -0400 Subject: [PATCH] dont refresh token and sync at same time --- jslib | 2 +- src/app/settings/create-organization.component.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/jslib b/jslib index 3429b57db4..4ca7a9709e 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 3429b57db42a3e1e9948b870bf24fcc02ebc8a99 +Subproject commit 4ca7a9709e9ccd0e67ce09309ae605f2057bf089 diff --git a/src/app/settings/create-organization.component.ts b/src/app/settings/create-organization.component.ts index feedd7979f..a880893757 100644 --- a/src/app/settings/create-organization.component.ts +++ b/src/app/settings/create-organization.component.ts @@ -161,10 +161,8 @@ export class CreateOrganizationComponent implements OnInit { } async finalize(orgId: string) { - await Promise.all([ - this.apiService.refreshIdentityToken(), - this.syncService.fullSync(true), - ]); + await this.apiService.refreshIdentityToken(); + await this.syncService.fullSync(true); this.analytics.eventTrack.next({ action: 'Created Organization' }); this.toasterService.popAsync('success', this.i18nService.t('organizationCreated'), this.i18nService.t('organizationReadyToGo'));