|
|
@ -33,12 +33,12 @@ export class GfDataProviderStatusComponent implements OnDestroy, OnInit { |
|
|
this.status$ = this.dataService |
|
|
this.status$ = this.dataService |
|
|
.fetchDataProviderHealth(this.dataSource) |
|
|
.fetchDataProviderHealth(this.dataSource) |
|
|
.pipe( |
|
|
.pipe( |
|
|
catchError(() => { |
|
|
|
|
|
return of({ isHealthy: false }); |
|
|
|
|
|
}), |
|
|
|
|
|
map(() => { |
|
|
map(() => { |
|
|
return { isHealthy: true }; |
|
|
return { isHealthy: true }; |
|
|
}), |
|
|
}), |
|
|
|
|
|
catchError(() => { |
|
|
|
|
|
return of({ isHealthy: false }); |
|
|
|
|
|
}), |
|
|
takeUntil(this.unsubscribeSubject) |
|
|
takeUntil(this.unsubscribeSubject) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|