Skip to content

PM-1304 - allow admin to update payment description #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

vas3a
Copy link
Collaborator

@vas3a vas3a commented Jun 18, 2025

https://topcoder.atlassian.net/browse/PM-1304 - Allow for updating the payment description in the wallet-admin

image

@vas3a vas3a requested review from jmgasper and kkartunov June 18, 2025 06:18
},
updated_at: new Date(),
updated_by: userId,
version: version++,

Choose a reason for hiding this comment

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

high
correctness
The version field is being incremented with version++ but this operation is not atomic. If this code is executed concurrently, it might lead to race conditions where multiple transactions could end up with the same version number. Consider using a database mechanism to ensure atomicity or handle versioning more robustly.

@vas3a vas3a merged commit 6529ecb into dev Jun 18, 2025
1 check 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.

2 participants