From cfab64cfa0601fb79bc9010417cdcb2cc49418d1 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Thu, 17 Jun 2021 08:31:40 +0500 Subject: [PATCH] fix: first request after login redirects from server --- src/job-execution/WebJobExecutor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index 61f215c..9640824 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -110,6 +110,11 @@ export class WebJobExecutor extends BaseJobExecutor { if (e instanceof LoginRequiredError) { await loginCallback() + if (config.serverType === ServerType.Sas9) + this.appendWaitingRequest(() => { + return this.execute(sasJob, data, config) + }) + this.appendWaitingRequest(() => { return this.execute( sasJob,