diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/settings/porting/sm-export.component.ts b/bitwarden_license/bit-web/src/app/secrets-manager/settings/porting/sm-export.component.ts index ee90b4fcb5..6032d3981d 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/settings/porting/sm-export.component.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/settings/porting/sm-export.component.ts @@ -82,7 +82,7 @@ export class SecretsManagerExportComponent implements OnInit, OnDestroy { private async doExport() { const fileExtension = this.exportFormats[this.formGroup.get("format").value].fileExtension; - const exportData = await this.secretsManagerApiService.export(this.orgId, fileExtension); + const exportData = await this.secretsManagerApiService.export(this.orgId); await this.downloadFile(exportData, fileExtension); this.platformUtilsService.showToast("success", null, this.i18nService.t("dataExportSuccess")); diff --git a/bitwarden_license/bit-web/src/app/secrets-manager/settings/services/sm-porting-api.service.ts b/bitwarden_license/bit-web/src/app/secrets-manager/settings/services/sm-porting-api.service.ts index 6432796430..5add06e363 100644 --- a/bitwarden_license/bit-web/src/app/secrets-manager/settings/services/sm-porting-api.service.ts +++ b/bitwarden_license/bit-web/src/app/secrets-manager/settings/services/sm-porting-api.service.ts @@ -29,10 +29,10 @@ export class SecretsManagerPortingApiService { private i18nService: I18nService ) {} - async export(organizationId: string, exportFormat = "json"): Promise { + async export(organizationId: string): Promise { const response = await this.apiService.send( "GET", - "/sm/" + organizationId + "/export?format=" + exportFormat, + "/sm/" + organizationId + "/export", null, true, true