When exporting from an organization ensure Organization_ClientExportedVault is collected

This commit is contained in:
Daniel James Smith 2024-05-18 18:43:59 +02:00
parent 5131e45e4e
commit 857fd90adf
No known key found for this signature in database
GPG Key ID: DA2E2EC600E1289B
1 changed files with 9 additions and 1 deletions

View File

@ -307,7 +307,15 @@ export class ExportComponent implements OnInit, OnDestroy {
}
protected async collectEvent(): Promise<void> {
await this.eventCollectionService.collect(EventType.User_ClientExportedVault);
if (this.organizationId) {
return await this.eventCollectionService.collect(
EventType.Organization_ClientExportedVault,
null,
false,
this.organizationId,
);
}
return await this.eventCollectionService.collect(EventType.User_ClientExportedVault);
}
get format() {