diff --git a/src/controllers/Execution.ts b/src/controllers/Execution.ts index e24b576..0410594 100644 --- a/src/controllers/Execution.ts +++ b/src/controllers/Execution.ts @@ -41,7 +41,7 @@ export class ExecutionController { let webout = path.join(session.path, 'webout.txt') await createFile(webout, '') - + program = ` %let sasjsprocessmode=Stored Program; filename _webout "${webout}"; diff --git a/src/routes/index.ts b/src/routes/index.ts index 930ec44..263c3ff 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -103,7 +103,7 @@ router.post( if (req.files && req.files.length > 0) { filesNamesMap = makeFilesNamesMap(req.files) } - + await new ExecutionController() .execute( sasCodePath, diff --git a/src/utils/upload.ts b/src/utils/upload.ts index c216cd4..f671367 100644 --- a/src/utils/upload.ts +++ b/src/utils/upload.ts @@ -40,7 +40,9 @@ export const generateFileUploadSasCode = async ( count: number }[] = [] - const sasSessionFolderList: string[] = await listFilesInFolder(sasSessionFolder) + const sasSessionFolderList: string[] = await listFilesInFolder( + sasSessionFolder + ) sasSessionFolderList.forEach((fileName) => { let fileCountString = fileCount < 100 ? '0' + fileCount : fileCount fileCountString = fileCount < 10 ? '00' + fileCount : fileCount