From d3c40f9759c688c670125f59e0c01932cd7274ed Mon Sep 17 00:00:00 2001 From: jmatsuok Date: Fri, 6 Dec 2024 16:29:38 -0500 Subject: [PATCH] Fix typeS --- src/app/Shared/Services/Api.service.tsx | 4 ++-- src/app/utils/fakeData.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/Shared/Services/Api.service.tsx b/src/app/Shared/Services/Api.service.tsx index 2b39f4cdc..756b1f5cb 100644 --- a/src/app/Shared/Services/Api.service.tsx +++ b/src/app/Shared/Services/Api.service.tsx @@ -478,11 +478,11 @@ export class ApiService { } // from file system path functions - uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable { + uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable { return this.sendRequest('v4', `grafana/${window.btoa((jvmId ?? 'uploads') + '/' + recordingName)}`, { method: 'POST', }).pipe( - map((resp) => resp.ok), + concatMap((resp) => resp.text()), first(), ); } diff --git a/src/app/utils/fakeData.ts b/src/app/utils/fakeData.ts index 2a0b46ac9..e2831b4e0 100644 --- a/src/app/utils/fakeData.ts +++ b/src/app/utils/fakeData.ts @@ -308,8 +308,8 @@ class FakeApiService extends ApiService { return of(true); } - uploadActiveRecordingToGrafana(_remoteId: number): Observable { - return of(true); + uploadActiveRecordingToGrafana(_remoteId: number): Observable { + return of(); } grafanaDashboardUrl(): Observable {