1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 21:10:05 +00:00

fix: JS / Python / R session folders should be NEW folders, not existing SAS folders

This commit is contained in:
2022-12-01 23:26:30 +05:00
parent 0e081e024b
commit 39ba995355
2 changed files with 8 additions and 4 deletions

View File

@@ -206,12 +206,15 @@ ${autoExecContent}`
export const getSessionController = (
runTime: RunTimeType
): SessionController => {
if (process.sessionController) return process.sessionController
if (runTime === RunTimeType.SAS) {
process.sasSessionController =
process.sasSessionController || new SASSessionController()
return process.sasSessionController
}
process.sessionController =
runTime === RunTimeType.SAS
? new SASSessionController()
: new SessionController()
process.sessionController || new SessionController()
return process.sessionController
}