Skip to content

Commit 0ee010e

Browse files
authored
Update project-structure.md (#3166)
Small path update
1 parent b4bfd63 commit 0ee010e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pages/guides/project-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ That's it. But now everywhere else in my application instead of requiring `pg` d
4141
```js
4242
// notice here I'm requiring my database adapter file
4343
// and not requiring node-postgres directly
44-
import * as db from '../db.js'
44+
import * as db from '../db/index.js'
4545

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

0 commit comments

Comments
 (0)