Merge pull request #4750 from mempool/nymkappa/fix-acceleration-apis

[accelerator] update dashboard and doc
This commit is contained in:
wiz
2024-03-09 13:51:45 +09:00
committed by GitHub
3 changed files with 173 additions and 165 deletions

View File

@@ -44,7 +44,7 @@ export class AccelerationsListComponent implements OnInit {
this.accelerationList$ = this.pageSubject.pipe(
switchMap((page) => {
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.servicesApiService.getAccelerations$() : this.servicesApiService.getAccelerationHistoryObserveResponse$({ timeframe: '1y', page: page }));
const accelerationObservable$ = this.accelerations$ || (this.pending ? this.servicesApiService.getAccelerations$() : this.servicesApiService.getAccelerationHistoryObserveResponse$({ page: page }));
return accelerationObservable$.pipe(
switchMap(response => {
let accelerations = response;

View File

@@ -60,7 +60,7 @@ export class AcceleratorDashboardComponent implements OnInit {
this.accelerations$ = this.stateService.chainTip$.pipe(
distinctUntilChanged(),
switchMap(() => {
return this.serviceApiServices.getAccelerationHistory$({ timeframe: '3m', page: 1, pageLength: 100}).pipe(
return this.serviceApiServices.getAccelerationHistory$({}).pipe(
catchError(() => {
return of([]);
}),