mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed offseting in lab by number
This commit is contained in:
parent
26a6d2d919
commit
2f8ce82325
3 changed files with 8 additions and 10 deletions
|
@ -7,9 +7,9 @@ import {
|
|||
} from '~/types/lab';
|
||||
import { api, cleanResult } from '~/utils/api';
|
||||
|
||||
export const getLabNodes = ({ after, sort }: GetLabNodesRequest) =>
|
||||
export const getLabNodes = ({ offset, limit, sort }: GetLabNodesRequest) =>
|
||||
api
|
||||
.get<GetLabNodesResult>(API.LAB.NODES, { params: { after, sort } })
|
||||
.get<GetLabNodesResult>(API.LAB.NODES, { params: { offset, limit, sort } })
|
||||
.then(cleanResult);
|
||||
|
||||
export const getLabStats = () => api.get<GetLabStatsResult>(API.LAB.STATS).then(cleanResult);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue