Skip to content

Commit

Permalink
refactor: add TODO for SQL injection guard in findTitle method
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Dec 30, 2024
1 parent de7f69a commit fcc1eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/contribution/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class ContributionRepository {
constructor(private readonly postgresService: PostgresService) {}

public async findTitle(contributionId: string) {
// todo-ZM: guard against SQL injections in all sql`` statements
const statement = sql`
SELECT
${contributionsTable.title}
Expand Down

0 comments on commit fcc1eb5

Please sign in to comment.