1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

diff loading for flow

This commit is contained in:
Fedor Katurov 2019-11-18 17:13:39 +07:00
parent 3a34178ac4
commit aa90258d25
4 changed files with 89 additions and 15 deletions

View file

@ -38,17 +38,35 @@ export const getNodeDiff = ({
start = null,
end = null,
take,
with_heroes,
with_updated,
with_recent,
with_valid,
access
}: {
start?: string;
end?: string;
take?: number;
access: string;
with_heroes: boolean;
with_updated: boolean;
with_recent: boolean;
with_valid: boolean;
}): Promise<IResultWithStatus<{ nodes: INode[] }>> =>
api
.get(
API.NODE.GET_DIFF,
configWithToken(access, { params: { start, end, take } })
configWithToken(access, {
params: {
start,
end,
take,
with_heroes,
with_updated,
with_recent,
with_valid
}
})
)
.then(resultMiddleware)
.catch(errorMiddleware);