-
Notifications
You must be signed in to change notification settings - Fork 6
Challenge winners - make sure Prisma schema updated with new enum value #66
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
Conversation
| challengeIds = options.challengeIds.slice(); | ||
| } else { | ||
| const rows = await reviewClient.$queryRaw` | ||
| SELECT DISTINCT "challengeId" AS id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ security]
Using raw SQL queries with template literals can lead to SQL injection vulnerabilities. Consider using parameterized queries or Prisma's query builder methods to ensure safety.
|
|
||
| const rows = isMarathonMatch | ||
| ? await reviewClient.$queryRaw` | ||
| SELECT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ security]
Using raw SQL queries with template literals can lead to SQL injection vulnerabilities. Consider using parameterized queries or Prisma's query builder methods to ensure safety.
| GROUP BY s.id, s."challengeId", s."memberId", s."submittedDate", s."createdAt" | ||
| ` | ||
| : await reviewClient.$queryRaw` | ||
| SELECT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ security]
Using raw SQL queries with template literals can lead to SQL injection vulnerabilities. Consider using parameterized queries or Prisma's query builder methods to ensure safety.
| } | ||
|
|
||
| const rows = await reviewClient.$queryRaw` | ||
| SELECT id, "minScore", "minimumPassingScore" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ security]
Using raw SQL queries with template literals can lead to SQL injection vulnerabilities. Consider using parameterized queries or Prisma's query builder methods to ensure safety.
| ); | ||
| } | ||
|
|
||
| main().catch((error) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[maintainability]
Consider adding more specific error handling or logging to provide better insights into what went wrong during execution.
No description provided.