mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-15 08:00:05 +00:00
Merge pull request #602 from sasjs/hot-fix-sasjs-server
fix: response from SASJS Server with/without debug on
This commit is contained in:
@@ -157,11 +157,6 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
|
|
||||||
let jsonResponse = res.result
|
let jsonResponse = res.result
|
||||||
|
|
||||||
if (this.serverType === ServerType.Sasjs) {
|
|
||||||
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
|
||||||
jsonResponse = getValidJson(webout)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.debug) {
|
if (config.debug) {
|
||||||
switch (this.serverType) {
|
switch (this.serverType) {
|
||||||
case ServerType.SasViya:
|
case ServerType.SasViya:
|
||||||
@@ -177,7 +172,13 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
? parseWeboutResponse(res.result, apiUrl)
|
? parseWeboutResponse(res.result, apiUrl)
|
||||||
: res.result
|
: res.result
|
||||||
break
|
break
|
||||||
|
case ServerType.Sasjs:
|
||||||
|
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
||||||
|
jsonResponse = getValidJson(webout)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
} else if (this.serverType === ServerType.Sasjs) {
|
||||||
|
jsonResponse = getValidJson(res.result._webout)
|
||||||
}
|
}
|
||||||
|
|
||||||
const responseObject = appendExtraResponseAttributes(
|
const responseObject = appendExtraResponseAttributes(
|
||||||
|
|||||||
Reference in New Issue
Block a user