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

fix: sasjs log not append to requests

This commit is contained in:
2022-05-11 23:00:32 +02:00
parent 6d50d4030e
commit 552540fb88
2 changed files with 24 additions and 19 deletions

View File

@@ -172,13 +172,12 @@ export class WebJobExecutor extends BaseJobExecutor {
let resObj = res
if (this.serverType === ServerType.Sasjs) {
resObj = {
result: res.result._webout,
log: parsedSasjsServerLog
}
if (resObj.result.length < 1)
throw new JobExecutionError(0, 'Job execution failed', resObj)
if (res.result._webout < 1)
throw new JobExecutionError(
0,
'Job execution failed',
parsedSasjsServerLog
)
}
this.requestClient!.appendRequest(resObj, sasJob, config.debug)