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

added callbacks to upload

This commit is contained in:
Fedor Katurov 2019-11-19 11:46:17 +07:00
parent 59252232e0
commit b6756bb3e5
5 changed files with 95 additions and 58 deletions

View file

@ -41,14 +41,14 @@ function* onGetFlow() {
hideLoader();
}
const start =
(stored && stored[0] && stored[0].created_at) || new Date().toISOString();
const end =
(stored &&
stored[stored.length - 1] &&
stored[stored.length - 1].created_at) ||
new Date().toISOString();
// const start =
// (stored && stored[0] && stored[0].created_at) || new Date().toISOString();
//
// const end =
// (stored &&
// stored[stored.length - 1] &&
// stored[stored.length - 1].created_at) ||
// new Date().toISOString();
yield put(flowSetFlow({ is_loading: true }));
@ -69,17 +69,17 @@ function* onGetFlow() {
updated: IFlowState["updated"];
valid: INode["id"][];
}> = yield call(reqWrapper, getNodeDiff, {
start,
end,
start: new Date().toISOString(),
end: new Date().toISOString(),
with_heroes: true,
with_updated: true,
with_recent: true,
with_valid: true
with_valid: false
});
const result = uniq([
...(before || []),
...(valid ? stored.filter(node => valid.includes(node.id)) : stored),
// ...(valid ? stored.filter(node => valid.includes(node.id)) : stored),
...(after || [])
]);