Return awaited promise

This commit is contained in:
Shefali 2024-03-20 12:33:54 -07:00
parent 1d5ddc545e
commit 5092ba8763

View File

@ -364,7 +364,7 @@ export default class ConditionManager extends EventEmitter {
let nextLegOptions = { ...options }; let nextLegOptions = { ...options };
delete nextLegOptions.onPartialResponse; delete nextLegOptions.onPartialResponse;
const results = Promise.all( const results = await Promise.all(
this.conditions.map((condition) => condition.requestLADConditionResult(nextLegOptions)) this.conditions.map((condition) => condition.requestLADConditionResult(nextLegOptions))
); );