1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore: code fixes

This commit is contained in:
2022-06-16 22:14:47 +05:00
parent 53854d0012
commit 1790e10fc1
2 changed files with 5 additions and 6 deletions

View File

@@ -284,7 +284,7 @@ const _metauser = _sasjs_username;
const sasjsprocessmode = 'Stored Program';
`
const requiredModules = `const fs = require('fs-extra')`
const requiredModules = `const fs = require('fs')`
program = `
/* runtime vars */
@@ -297,7 +297,9 @@ ${preProgramVarStatments}
${program}
/* write webout file*/
fs.promises.writeFile(weboutPath, _webout)
fs.writeFile(weboutPath, _webout, function (err) {
if (err) throw err;
})
`
// if no files are uploaded filesNamesMap will be undefined
if (otherArgs?.filesNamesMap) {

View File

@@ -94,10 +94,7 @@ const Main = (props: Props) => {
setEditMode(false)
} else {
window.open(
`${baseUrl}/SASjsApi/stp/execute?_program=${props.selectedFilePath.replace(
/.sas$/,
''
)}`
`${baseUrl}/SASjsApi/stp/execute?_program=${props.selectedFilePath}`
)
}
}