@sasjs/adapter 3.7.12 → 3.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/node/index.js +2 -2
- package/package.json +1 -1
- package/src/job-execution/Sas9JobExecutor.ts +4 -16
package/package.json
CHANGED
|
@@ -85,25 +85,13 @@ export class Sas9JobExecutor extends BaseJobExecutor {
|
|
|
85
85
|
}
|
|
86
86
|
)
|
|
87
87
|
.then((res: any) => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (typeof res === 'object') {
|
|
91
|
-
resString = JSON.stringify(res)
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
this.requestClient!.appendRequest(resString, sasJob, config.debug)
|
|
95
|
-
|
|
88
|
+
//appending response to requests array that will be used for requests history reference
|
|
89
|
+
this.requestClient!.appendRequest(res, sasJob, config.debug)
|
|
96
90
|
return res
|
|
97
91
|
})
|
|
98
92
|
.catch((err: any) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (typeof err === 'object') {
|
|
102
|
-
errString = JSON.stringify(errString)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this.requestClient!.appendRequest(errString, sasJob, config.debug)
|
|
106
|
-
|
|
93
|
+
//appending error to requests array that will be used for requests history reference
|
|
94
|
+
this.requestClient!.appendRequest(err, sasJob, config.debug)
|
|
107
95
|
return err
|
|
108
96
|
})
|
|
109
97
|
}
|