1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-10 17:04:36 +00:00

fix: issue with parsing json in sasjs job executor

This commit is contained in:
2023-06-14 15:08:11 +02:00
parent bd872e0e75
commit f42f6bca00

View File

@@ -93,8 +93,10 @@ export class SasjsJobExecutor extends BaseJobExecutor {
)
}
const { result } = res.result
if (result && result.trim()) res.result = getValidJson(result)
const { result } = res
if (result && typeof result === 'string' && result.trim())
res.result = getValidJson(result)
this.requestClient!.appendRequest(res, sasJob, config.debug)