|
|
@ -29,6 +29,7 @@ import { Injectable, inject } from '@angular/core'; |
|
|
import { SortDirection } from '@angular/material/sort'; |
|
|
import { SortDirection } from '@angular/material/sort'; |
|
|
import { DataSource, MarketData, Platform } from '@prisma/client'; |
|
|
import { DataSource, MarketData, Platform } from '@prisma/client'; |
|
|
import { JobStatus } from 'bull'; |
|
|
import { JobStatus } from 'bull'; |
|
|
|
|
|
import { isNumber } from 'lodash'; |
|
|
|
|
|
|
|
|
@Injectable({ |
|
|
@Injectable({ |
|
|
providedIn: 'root' |
|
|
providedIn: 'root' |
|
|
@ -156,11 +157,13 @@ export class AdminService { |
|
|
}) { |
|
|
}) { |
|
|
let params = new HttpParams(); |
|
|
let params = new HttpParams(); |
|
|
|
|
|
|
|
|
if (skip) { |
|
|
if (isNumber(skip)) { |
|
|
params = params.append('skip', skip); |
|
|
params = params.append('skip', skip); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
params = params.append('take', take); |
|
|
if (isNumber(take)) { |
|
|
|
|
|
params = params.append('take', take); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return this.http.get<AdminUsersResponse>('/api/v1/admin/user', { params }); |
|
|
return this.http.get<AdminUsersResponse>('/api/v1/admin/user', { params }); |
|
|
} |
|
|
} |
|
|
|