Skip to content
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

task8 #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

task8 #31

wants to merge 1 commit into from

Conversation

m1mik
Copy link

@m1mik m1mik commented Jan 30, 2023

No description provided.

async findUserCart(@Req() req: AppRequest) {
try {
console.log('req & params!!!: ', req.params, req.params.cartid);
const cart: QueryResult = await client(

Choose a reason for hiding this comment

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

Please reconsider your approach to commands creation. Currently your code is vulnerable to SQL Injection attack.
Please use parameterized commands:
https://node-postgres.com/features/queries#parameterized-query

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