From a3cc274ef12e2add40723564e0c7f1afc53e8101 Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Fri, 10 Jun 2022 15:38:03 +0500 Subject: [PATCH] chore: no need to appendRequest from then block when there is jobExecutionError --- src/job-execution/WebJobExecutor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index 8555fa0..a813794 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -177,8 +177,6 @@ export class WebJobExecutor extends BaseJobExecutor { } : res - this.requestClient!.appendRequest(resObj, sasJob, config.debug) - if ( this.serverType === ServerType.Sasjs && res.result._webout.length < 1 @@ -190,6 +188,8 @@ export class WebJobExecutor extends BaseJobExecutor { ) } + this.requestClient!.appendRequest(resObj, sasJob, config.debug) + let jsonResponse = res.result if (config.debug) {