diff --git a/apps/mina-sidor-fa/src/app/pages/exports/pages/deltagare-export/deltagare-export.component.ts b/apps/mina-sidor-fa/src/app/pages/exports/pages/deltagare-export/deltagare-export.component.ts index 17daa1f..595aa97 100644 --- a/apps/mina-sidor-fa/src/app/pages/exports/pages/deltagare-export/deltagare-export.component.ts +++ b/apps/mina-sidor-fa/src/app/pages/exports/pages/deltagare-export/deltagare-export.component.ts @@ -66,7 +66,7 @@ export class DeltagareExportComponent { .pipe(take(1)) .subscribe({ next: response => { - const blob = new Blob([response], { type: 'application/csv' }); + const blob = new Blob([response], { type: 'text/csv' }); saveAs(blob, 'deltagare-export.csv'); this.fetchIsLoading$.next(false); }, diff --git a/apps/mina-sidor-fa/src/app/shared/services/api/export.api.service.ts b/apps/mina-sidor-fa/src/app/shared/services/api/export.api.service.ts index 662bdde..b4230ac 100644 --- a/apps/mina-sidor-fa/src/app/shared/services/api/export.api.service.ts +++ b/apps/mina-sidor-fa/src/app/shared/services/api/export.api.service.ts @@ -23,7 +23,7 @@ export class ExportApiService { }; return this.httpClient - .get(`${this._apiBaseUrl}/deltagare`, { params, responseType: 'blob' as 'json' }) + .post(`${this._apiBaseUrl}/deltagare`, { params, responseType: 'blob' as 'json' }) .pipe( catchError((error: Error) => { throw new CustomError({