Skip to content

Commit

Permalink
Fix typeS
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Matsuoka committed Dec 6, 2024
1 parent ac9df86 commit d3c40f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ export class ApiService {
}

// from file system path functions
uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable<boolean> {
uploadArchivedRecordingToGrafanaFromPath(jvmId: string, recordingName: string): Observable<String> {
return this.sendRequest('v4', `grafana/${window.btoa((jvmId ?? 'uploads') + '/' + recordingName)}`, {
method: 'POST',
}).pipe(
map((resp) => resp.ok),
concatMap((resp) => resp.text()),
first(),
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/utils/fakeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ class FakeApiService extends ApiService {
return of(true);
}

uploadActiveRecordingToGrafana(_remoteId: number): Observable<boolean> {
return of(true);
uploadActiveRecordingToGrafana(_remoteId: number): Observable<String> {
return of();
}

grafanaDashboardUrl(): Observable<string> {
Expand Down

0 comments on commit d3c40f9

Please sign in to comment.