Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 22, 2025

No description provided.

@vas3a vas3a requested a review from kkartunov October 22, 2025 14:28
created_at: 'desc',
},
],
const winnings = await this.prisma.winnings.findMany({

Choose a reason for hiding this comment

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

[❗❗ correctness]
The change from a single transaction to separate queries for findMany and count could lead to potential issues with data consistency if the data changes between the two queries. Consider if this change is necessary and if so, document the reasoning or explore alternative solutions to maintain atomicity.

@vas3a vas3a merged commit c5a660b into dev Oct 22, 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