Merge branch 'master' into feature/fix-mining-pool-page-title
This commit is contained in:
@@ -122,10 +122,6 @@ export class ApiService {
|
||||
}
|
||||
|
||||
listPools$(interval: string | null) : Observable<PoolsStats> {
|
||||
let params = {};
|
||||
if (interval) {
|
||||
params = new HttpParams().set('interval', interval);
|
||||
}
|
||||
return this.httpClient.get<PoolsStats>(this.apiBaseUrl + this.apiBasePath + '/api/v1/mining/pools', {params});
|
||||
return this.httpClient.get<PoolsStats>(this.apiBaseUrl + this.apiBasePath + `/api/v1/mining/pools/${interval}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user