data import download fixes

This commit is contained in:
Jan Prochazka
2020-11-29 20:12:11 +01:00
parent 0785c375a5
commit 6d7e7f97c7
5 changed files with 33 additions and 14 deletions

View File

@@ -43,8 +43,8 @@ ${
? `
const downloaded=await dbgateApi.download(${JSON.stringify(props.downloadUrl)});
const reader=await ${extractShellApiFunctionName(functionName)}(Object.assign(${JSON.stringify(
props
)}, { fileName: downloaded, downloadUrl: undefined }));
_.omit(props, ['downloadUrl'])
)}, { fileName: downloaded }));
`
: `const reader=await ${extractShellApiFunctionName(functionName)}(${JSON.stringify(props)});`
}