Skip to content

BAH-4226 | Fixing condition save#1036

Merged
mohan-13 merged 1 commit intomasterfrom
BAH-4226-Save-Condition
Oct 22, 2025
Merged

BAH-4226 | Fixing condition save#1036
mohan-13 merged 1 commit intomasterfrom
BAH-4226-Save-Condition

Conversation

@angshu
Copy link
Member

@angshu angshu commented Oct 22, 2025

No description provided.

@angshu angshu requested a review from rahu1ramesh October 22, 2025 05:51
});

return promises[promises.length - 1];
return promises.length > 0 ? Promise.all(promises) : Promise.resolve({});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Promise.all() seems to return all resolved promises. But the old one seems to have returning the last resolved Promise. Isn't this a contract change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Promise.all() returns a single promise but with multiple values. So I think thats fine.

@mohan-13 mohan-13 merged commit 9d83e32 into master Oct 22, 2025
2 checks passed
@mohan-13 mohan-13 deleted the BAH-4226-Save-Condition branch October 22, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants