mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-03 18:50:05 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c98cabe6c | ||
|
|
a6f6897543 |
@@ -52,9 +52,13 @@ export class SasJsJobExecutor extends BaseJobExecutor {
|
|||||||
authConfig?.access_token
|
authConfig?.access_token
|
||||||
)
|
)
|
||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
|
const parsedSasjsServerLog = res.result.log
|
||||||
|
.map((logLine: any) => logLine.line)
|
||||||
|
.join('\n')
|
||||||
|
|
||||||
const resObj = {
|
const resObj = {
|
||||||
result: res.result._webout,
|
result: res.result._webout,
|
||||||
log: res.result.log
|
log: parsedSasjsServerLog
|
||||||
}
|
}
|
||||||
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
||||||
|
|
||||||
|
|||||||
@@ -146,11 +146,16 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
const requestPromise = new Promise((resolve, reject) => {
|
const requestPromise = new Promise((resolve, reject) => {
|
||||||
this.requestClient!.post(apiUrl, formData, authConfig?.access_token)
|
this.requestClient!.post(apiUrl, formData, authConfig?.access_token)
|
||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
|
const parsedSasjsServerLog =
|
||||||
|
this.serverType === ServerType.Sasjs
|
||||||
|
? res.result.log.map((logLine: any) => logLine.line).join('\n')
|
||||||
|
: res.result.log
|
||||||
|
|
||||||
const resObj =
|
const resObj =
|
||||||
this.serverType === ServerType.Sasjs
|
this.serverType === ServerType.Sasjs
|
||||||
? {
|
? {
|
||||||
result: res.result._webout,
|
result: res.result._webout,
|
||||||
log: res.result.log
|
log: parsedSasjsServerLog
|
||||||
}
|
}
|
||||||
: res
|
: res
|
||||||
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
this.requestClient!.appendRequest(resObj, sasJob, config.debug)
|
||||||
|
|||||||
Reference in New Issue
Block a user