Skip to content

Commit

Permalink
Update project-structure.md (#3166)
Browse files Browse the repository at this point in the history
Small path update
  • Loading branch information
bigdawggi authored Mar 13, 2024
1 parent b4bfd63 commit 0ee010e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ That's it. But now everywhere else in my application instead of requiring `pg` d
```js
// notice here I'm requiring my database adapter file
// and not requiring node-postgres directly
import * as db from '../db.js'
import * as db from '../db/index.js'

app.get('/:id', async (req, res, next) => {
const result = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id])
Expand Down

0 comments on commit 0ee010e

Please sign in to comment.