mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 20:40:05 +00:00
fix: make duplicate request only if payload is present
This commit is contained in:
@@ -110,10 +110,10 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
if (e instanceof LoginRequiredError) {
|
if (e instanceof LoginRequiredError) {
|
||||||
await loginCallback()
|
await loginCallback()
|
||||||
|
|
||||||
if (config.serverType === ServerType.Sas9)
|
if (config.serverType === ServerType.Sas9 && data)
|
||||||
this.appendWaitingRequest(() => {
|
this.appendWaitingRequest(() =>
|
||||||
return this.execute(sasJob, data, config)
|
this.execute(sasJob, data, config)
|
||||||
})
|
)
|
||||||
|
|
||||||
this.appendWaitingRequest(() => {
|
this.appendWaitingRequest(() => {
|
||||||
return this.execute(
|
return this.execute(
|
||||||
|
|||||||
Reference in New Issue
Block a user