1
0
Fork 0
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:
Fedor Katurov 2022-03-23 18:52:41 +07:00
parent 26a6d2d919
commit 2f8ce82325
3 changed files with 8 additions and 10 deletions

View file

@ -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);