mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 15:00:05 +00:00
fix(executor): create tmp files before execution
This commit is contained in:
@@ -28,11 +28,15 @@ export const processSas = async (query: ExecutionQuery): Promise<any> => {
|
||||
generateUniqueFileName(sasFile.replace(/\.sas/g, ''), '.log')
|
||||
)
|
||||
|
||||
await createFile(sasLogPath, '')
|
||||
|
||||
const sasWeboutPath = path.join(
|
||||
getTmpWeboutFolderPath(),
|
||||
generateUniqueFileName(sasFile.replace(/\.sas/g, ''), '.json')
|
||||
generateUniqueFileName(sasFile.replace(/\.sas/g, ''), '.txt')
|
||||
)
|
||||
|
||||
await createFile(sasWeboutPath, '')
|
||||
|
||||
let sasCode = await readFile(sasCodePath)
|
||||
|
||||
const vars: any = query
|
||||
|
||||
Reference in New Issue
Block a user