Add description to additional sync calls

This commit is contained in:
Daniel James Smith 2024-04-29 18:48:38 +02:00
parent 111ee2d294
commit b7dec44197
No known key found for this signature in database
GPG Key ID: DA2E2EC600E1289B
7 changed files with 8 additions and 8 deletions

View File

@ -144,7 +144,7 @@ class FilelessImporterBackground implements FilelessImporterBackgroundInterface
const result = await this.importService.import(importer, data, null, null, false);
if (result.success) {
this.importNotificationsPort?.postMessage({ command: "filelessImportCompleted" });
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "import");
}
} catch (error) {
this.importNotificationsPort?.postMessage({

View File

@ -50,7 +50,7 @@ export class MigrateFromLegacyEncryptionComponent {
const masterPassword = this.formGroup.value.masterPassword;
try {
await this.syncService.fullSync(false, true);
await this.syncService.fullSync(false, "migrate-legacy-encryption", true);
await this.keyRotationService.rotateUserKeyAndEncryptedData(masterPassword);

View File

@ -54,7 +54,7 @@ export class UserLayoutComponent implements OnInit {
async ngOnInit() {
document.body.classList.remove("layout_frontend");
await this.syncService.fullSync(false);
await this.syncService.fullSync(false, "web-user-layout");
this.hasFamilySponsorshipAvailable$ = this.organizationService.canManageSponsorships$;

View File

@ -75,7 +75,7 @@ export class WebProviderService {
await this.apiService.refreshIdentityToken();
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "provider-create-client-org");
}
async detachOrganization(providerId: string, organizationId: string): Promise<any> {

View File

@ -347,6 +347,6 @@ export class OrganizationApiService implements OrganizationApiServiceAbstraction
true,
false,
);
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "organization-enable-collection-enhancements");
}
}

View File

@ -52,7 +52,7 @@ export class OrganizationBillingService implements OrganizationBillingServiceAbs
await this.apiService.refreshIdentityToken();
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "billing-purchase-subscription");
return response;
}
@ -72,7 +72,7 @@ export class OrganizationBillingService implements OrganizationBillingServiceAbs
await this.apiService.refreshIdentityToken();
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "billing-start-free-trial");
return response;
}

View File

@ -174,7 +174,7 @@ export class NotificationsService implements NotificationsServiceAbstraction {
case NotificationType.SyncOrganizations:
if (isAuthenticated) {
// An organization update may not have bumped the user's account revision date, so force a sync
await this.syncService.fullSync(true);
await this.syncService.fullSync(true, "notifications-sync-organizations");
}
break;
case NotificationType.SyncOrgKeys: