mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +00:00
fix: issue with parsing json in sasjs job executor
This commit is contained in:
@@ -93,8 +93,10 @@ export class SasjsJobExecutor extends BaseJobExecutor {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { result } = res.result
|
const { result } = res
|
||||||
if (result && result.trim()) res.result = getValidJson(result)
|
|
||||||
|
if (result && typeof result === 'string' && result.trim())
|
||||||
|
res.result = getValidJson(result)
|
||||||
|
|
||||||
this.requestClient!.appendRequest(res, sasJob, config.debug)
|
this.requestClient!.appendRequest(res, sasJob, config.debug)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user