Skip to content

Commit 11c2294

Browse files
committed
fixed example code
1 parent 1fe1f9b commit 11c2294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/authConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const localStrat = new LocalStrategy(async (username, password, done) => {
88
try {
99
const { rows } = await pool.query(
1010
`SELECT * FROM account WHERE username = '${username}';`
11-
// const {rows} = pool.query = "SELECT * FROM account WHERE username = $1", [username]
11+
// const {rows} = pool.query("SELECT * FROM account WHERE username = $1", [username]);
1212

1313
/*
1414
SELECT * FROM account WHERE username = '; DROP TABLE post;--'

0 commit comments

Comments
 (0)