Merge branch 'master' into feature/fix-mining-pool-page-title

This commit is contained in:
wiz authored and GitHub committed 2022-02-02 14:47:50 +00:00
commit d66e23caa5
5 files changed
+26 -17

No files matched your search

+1 -5
View File
@@ -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}`);
}
}