Skip to content

Commit fcc1eb5

Browse files
committed
refactor: add TODO for SQL injection guard in findTitle method
1 parent de7f69a commit fcc1eb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/src/contribution/repository.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class ContributionRepository {
1515
constructor(private readonly postgresService: PostgresService) {}
1616

1717
public async findTitle(contributionId: string) {
18+
// todo-ZM: guard against SQL injections in all sql`` statements
1819
const statement = sql`
1920
SELECT
2021
${contributionsTable.title}

0 commit comments

Comments
 (0)