consolidate retry logic in error interceptor

remove retry operator from services
This commit is contained in:
Jesse Lucas
2020-04-09 13:01:06 -04:00
parent 9918cb4ffc
commit 89c53c508b
5 changed files with 11 additions and 17 deletions
+2 -3
View File
@@ -1,9 +1,9 @@
import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import { apiURL, apiRetry } from '../api-utils';
import { apiURL } from '../api-utils';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { retry, map } from 'rxjs/operators';
import { map } from 'rxjs/operators';
import { SystemStatus } from '../system-status';
@Injectable({
@@ -19,7 +19,6 @@ export class SystemStatusService {
return this.http
.get<SystemStatus>(this.systemStatusUrl)
.pipe(
retry(apiRetry),
map(res => {
return res;
})