From ae091bd738f334e3bc3296091247992330be3e92 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Thu, 1 Jul 2021 09:10:34 -0500 Subject: [PATCH] [Reset Password] BUG Org Keys backfill force sync (#1055) Merging on Vince's behalf --- src/app/organizations/manage/people.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/organizations/manage/people.component.ts b/src/app/organizations/manage/people.component.ts index 640d892835..c99f018889 100644 --- a/src/app/organizations/manage/people.component.ts +++ b/src/app/organizations/manage/people.component.ts @@ -23,6 +23,7 @@ import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.se import { PolicyService } from 'jslib-common/abstractions/policy.service'; import { SearchService } from 'jslib-common/abstractions/search.service'; import { StorageService } from 'jslib-common/abstractions/storage.service'; +import { SyncService } from 'jslib-common/abstractions/sync.service'; import { UserService } from 'jslib-common/abstractions/user.service'; import { OrganizationKeysRequest } from 'jslib-common/models/request/organizationKeysRequest'; @@ -98,7 +99,7 @@ export class PeopleComponent implements OnInit { private cryptoService: CryptoService, private userService: UserService, private router: Router, private storageService: StorageService, private searchService: SearchService, private validationService: ValidationService, private policyService: PolicyService, - private searchPipe: SearchPipe) { } + private searchPipe: SearchPipe, private syncService: SyncService) { } async ngOnInit() { this.route.parent.parent.params.subscribe(async params => { @@ -122,6 +123,7 @@ export class PeopleComponent implements OnInit { const response = await this.apiService.postOrganizationKeys(this.organizationId, request); if (response != null) { this.orgHasKeys = response.publicKey != null && response.privateKey != null; + await this.syncService.fullSync(true); // Replace oganizations with new data } else { throw new Error(this.i18nService.t('resetPasswordOrgKeysError')); }