Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 28, 2025

When updating status and releaseDate is undefined, omit it when sending to legacy.

previously:
image

fix:
image

@vas3a vas3a requested a review from kkartunov October 28, 2025 07:41
amount: body.paymentAmount,
releaseDate: formatDate(new Date(body.releaseDate)),
releaseDate:
body.releaseDate && formatDate(new Date(body.releaseDate)),

Choose a reason for hiding this comment

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

[⚠️ correctness]
The conditional logic here is correct for omitting releaseDate when body.releaseDate is undefined. However, consider explicitly checking for null as well, since null is a common value that might be used to represent an absent date. This would ensure that releaseDate is omitted in both undefined and null cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we're fine for now since we don't plan to expand this functionality (we'll remove it soon), and for now we're not sending null

@kkartunov kkartunov merged commit d14ea20 into master Oct 28, 2025
4 checks passed
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.

3 participants