mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-05 19:50:06 +00:00
fix: utils import, tests fix, auto testing script
This commit is contained in:
@@ -168,13 +168,17 @@ export class WebJobExecutor extends BaseJobExecutor {
|
||||
? res.result.log.map((logLine: any) => logLine.line).join('\n')
|
||||
: res.result.log
|
||||
|
||||
const resObj =
|
||||
this.serverType === ServerType.Sasjs
|
||||
? {
|
||||
result: res.result._webout,
|
||||
log: parsedSasjsServerLog
|
||||
}
|
||||
: res
|
||||
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)
|
||||
}
|
||||
|
||||
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
||||
|
||||
let jsonResponse = res.result
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isSpecialMissing } from '@sasjs/utils'
|
||||
import { isSpecialMissing } from '@sasjs/utils/input/validators'
|
||||
|
||||
/**
|
||||
* Converts the given JSON object array to a CSV string.
|
||||
|
||||
Reference in New Issue
Block a user