fix onStepAwaiting events (#7161)
This commit is contained in:
1 parent
11517f0faf
commit
edcafa140c
3 files changed
+10
-6
No files matched your search
@@ -720,6 +720,9 @@ export class TransactionOrchestrator extends EventEmitter {
|
||||
)
|
||||
.then(async (response: any) => {
|
||||
if (!step.definition.backgroundExecution) {
|
||||
const eventName = DistributedTransactionEvent.STEP_AWAITING
|
||||
transaction.emit(eventName, { step, transaction })
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@@ -752,9 +755,6 @@ export class TransactionOrchestrator extends EventEmitter {
|
||||
|
||||
await setStepFailure(error)
|
||||
})
|
||||
|
||||
const eventName = DistributedTransactionEvent.STEP_AWAITING
|
||||
transaction.emit(eventName, { step, transaction })
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user