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

refactored to match backend

This commit is contained in:
Fedor Katurov 2020-07-12 15:39:09 +07:00
parent 33a55c852d
commit 6b6c7f5dd2
4 changed files with 8 additions and 10 deletions

View file

@ -66,14 +66,12 @@ function* uploadWorker({ file, temp_id, target, type }: IFileWithUUID) {
yield fork(onUploadProgress, chan);
const result = yield call(promise, {
return yield call(promise, {
temp_id,
file,
target,
type
});
return result;
}
function* uploadFile({