mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-15 08:00:05 +00:00
fix: no need to stringify res/err in sas9JobExecutor before appending request #675
This commit is contained in:
@@ -85,25 +85,11 @@ export class Sas9JobExecutor extends BaseJobExecutor {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
let resString = res
|
this.requestClient!.appendRequest(res, sasJob, config.debug)
|
||||||
|
|
||||||
if (typeof res === 'object') {
|
|
||||||
resString = JSON.stringify(res)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.requestClient!.appendRequest(resString, sasJob, config.debug)
|
|
||||||
|
|
||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
.catch((err: any) => {
|
.catch((err: any) => {
|
||||||
let errString = err
|
this.requestClient!.appendRequest(err, sasJob, config.debug)
|
||||||
|
|
||||||
if (typeof err === 'object') {
|
|
||||||
errString = JSON.stringify(errString)
|
|
||||||
}
|
|
||||||
|
|
||||||
this.requestClient!.appendRequest(errString, sasJob, config.debug)
|
|
||||||
|
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user