Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Dec 3, 2025

https://topcoder.atlassian.net/browse/PS-469

Updated the query used in user's payments reconciliation: it should return setupComplete=false if user is missing user_payment_methods.
Until now it was not returning anything for users how were missing user_payment_methods.

@vas3a vas3a requested a review from kkartunov December 3, 2025 16:15
>`
>`
WITH u(user_id) AS (
VALUES ${Prisma.join(ids.map((id) => Prisma.sql`(${id})`))}
Copy link

Choose a reason for hiding this comment

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

[❗❗ security]
Ensure that Prisma.sql is correctly escaping and sanitizing the input to prevent SQL injection vulnerabilities. Although Prisma.sql is generally safe, it's crucial to verify this, especially when dynamically constructing queries.

@vas3a vas3a merged commit 29e210d into PS-469_logs Dec 3, 2025
3 checks passed
@vas3a vas3a deleted the PS-469_payment-reconciliation branch December 3, 2025 19:28
@vas3a vas3a restored the PS-469_payment-reconciliation branch December 3, 2025 19:29
@vas3a vas3a deleted the PS-469_payment-reconciliation branch December 3, 2025 19:29
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