1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

SM-776: Removed unused format specifier for SM export (#5470)

This commit is contained in:
Colton Hurst 2023-05-31 13:15:25 -04:00 committed by GitHub
parent 3f35b78b40
commit c8156b82b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"));

View File

@ -29,10 +29,10 @@ export class SecretsManagerPortingApiService {
private i18nService: I18nService
) {}
async export(organizationId: string, exportFormat = "json"): Promise<string> {
async export(organizationId: string): Promise<string> {
const response = await this.apiService.send(
"GET",
"/sm/" + organizationId + "/export?format=" + exportFormat,
"/sm/" + organizationId + "/export",
null,
true,
true