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:
parent
33a55c852d
commit
6b6c7f5dd2
4 changed files with 8 additions and 10 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue