Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Oct 22, 2025

No description provided.

kkartunov and others added 2 commits October 21, 2025 19:11
PM-2518 - create db migration for the winnings & payments indexes
@vas3a vas3a merged commit 8fb4c09 into dev Oct 22, 2025
1 check passed
@vas3a vas3a deleted the remove-rewards-deps branch October 22, 2025 10:23
getWinningsTotalsByWinnerID(winnerId: string) {
return this.prisma.$queryRaw<
{ payment_type: 'PAYMENT' | 'REWARD'; total_owed: number }[]
{ payment_type: 'PAYMENT'; total_owed: number }[]

Choose a reason for hiding this comment

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

[❗❗ correctness]
The change from { payment_type: 'PAYMENT' | 'REWARD'; total_owed: number }[] to { payment_type: 'PAYMENT'; total_owed: number }[] suggests that the query will no longer return rows with payment_type: 'REWARD'. Ensure that this change aligns with the business logic and that no other parts of the codebase rely on the presence of 'REWARD' entries. If this is intentional, verify that all dependent logic has been updated accordingly.

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