mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-05 03:30:05 +00:00
Merge pull request #650 from sasjs/sasjs-server-webout
fix: no need to parse if webout is an object
This commit is contained in:
@@ -65,8 +65,12 @@ export class SasJsJobExecutor extends BaseJobExecutor {
|
|||||||
let jsonResponse = res.result
|
let jsonResponse = res.result
|
||||||
|
|
||||||
if (config.debug) {
|
if (config.debug) {
|
||||||
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
if (typeof res.result._webout === 'object') {
|
||||||
jsonResponse = getValidJson(webout)
|
jsonResponse = res.result._webout
|
||||||
|
} else {
|
||||||
|
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
||||||
|
jsonResponse = getValidJson(webout)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
jsonResponse = getValidJson(res.result._webout)
|
jsonResponse = getValidJson(res.result._webout)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,8 +178,12 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
: res.result
|
: res.result
|
||||||
break
|
break
|
||||||
case ServerType.Sasjs:
|
case ServerType.Sasjs:
|
||||||
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
if (typeof res.result._webout === 'object') {
|
||||||
jsonResponse = getValidJson(webout)
|
jsonResponse = res.result._webout
|
||||||
|
} else {
|
||||||
|
const webout = parseWeboutResponse(res.result._webout, apiUrl)
|
||||||
|
jsonResponse = getValidJson(webout)
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else if (this.serverType === ServerType.Sasjs) {
|
} else if (this.serverType === ServerType.Sasjs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user