mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Fix typo in project-structure.md (#3008)
This commit is contained in:
parent
46cfb25baf
commit
735683c5cb
@ -44,7 +44,7 @@ That's it. But now everywhere else in my application instead of requiring `pg` d
|
||||
import * as db from '../db.js'
|
||||
|
||||
app.get('/:id', async (req, res, next) => {
|
||||
const result = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id]
|
||||
const result = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id])
|
||||
res.send(result.rows[0])
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user