mirror of
https://github.com/sasjs/server.git
synced 2026-01-09 07:20:05 +00:00
fix: sending _webout as result object in response JSON
This commit is contained in:
@@ -53,7 +53,7 @@ export class ExecutionController {
|
||||
program = `
|
||||
/* runtime vars */
|
||||
${varStatments}
|
||||
filename _webout "${weboutPath}";
|
||||
filename _webout "${weboutPath}" mod;
|
||||
|
||||
/* dynamic user-provided vars */
|
||||
${preProgramVarStatments}
|
||||
@@ -111,7 +111,7 @@ ${program}`
|
||||
|
||||
if (returnJson) {
|
||||
const response: any = {
|
||||
result: webout
|
||||
webout: webout
|
||||
}
|
||||
if ((debugValue && debugValue >= 131) || session.crashed) {
|
||||
response.log = log
|
||||
|
||||
@@ -25,7 +25,7 @@ interface ExecuteReturnJsonPayload {
|
||||
interface ExecuteReturnJsonResponse {
|
||||
status: string
|
||||
log?: string
|
||||
result?: string
|
||||
_webout?: string
|
||||
message?: string
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ const executeReturnJson = async (
|
||||
)
|
||||
return {
|
||||
status: 'success',
|
||||
result: jsonResult.result,
|
||||
_webout: jsonResult.webout,
|
||||
log: jsonResult.log
|
||||
}
|
||||
} catch (err: any) {
|
||||
|
||||
Reference in New Issue
Block a user