mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 23:10:05 +00:00
chore: code fixes
This commit is contained in:
@@ -6,7 +6,8 @@ import {
|
|||||||
getPreProgramVariables,
|
getPreProgramVariables,
|
||||||
getUserAutoExec,
|
getUserAutoExec,
|
||||||
ModeType,
|
ModeType,
|
||||||
parseLogToArray
|
parseLogToArray,
|
||||||
|
RunTimeType
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
|
|
||||||
interface ExecuteSASCodePayload {
|
interface ExecuteSASCodePayload {
|
||||||
@@ -46,13 +47,14 @@ const executeSASCode = async (
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const { webout, log, httpHeaders } =
|
const { webout, log, httpHeaders } =
|
||||||
(await new ExecutionController().executeProgram(
|
(await new ExecutionController().executeProgram({
|
||||||
code,
|
program: code,
|
||||||
getPreProgramVariables(req),
|
preProgramVariables: getPreProgramVariables(req),
|
||||||
{ ...req.query, _debug: 131 },
|
vars: { ...req.query, _debug: 131 },
|
||||||
{ userAutoExec },
|
otherArgs: { userAutoExec },
|
||||||
true
|
returnJson: true,
|
||||||
)) as ExecuteReturnJson
|
runTime: RunTimeType.SAS
|
||||||
|
})) as ExecuteReturnJson
|
||||||
|
|
||||||
return {
|
return {
|
||||||
status: 'success',
|
status: 'success',
|
||||||
|
|||||||
Reference in New Issue
Block a user