1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 02:30:06 +00:00

fix: make duplicate request only if payload is present

This commit is contained in:
Saad Jutt
2021-06-17 14:37:46 +05:00
parent cfab64cfa0
commit bc6f109c48

View File

@@ -110,10 +110,10 @@ export class WebJobExecutor extends BaseJobExecutor {
if (e instanceof LoginRequiredError) {
await loginCallback()
if (config.serverType === ServerType.Sas9)
this.appendWaitingRequest(() => {
return this.execute(sasJob, data, config)
})
if (config.serverType === ServerType.Sas9 && data)
this.appendWaitingRequest(() =>
this.execute(sasJob, data, config)
)
this.appendWaitingRequest(() => {
return this.execute(