From f94920b4fd487e051f706d8842ad9bf216344f28 Mon Sep 17 00:00:00 2001 From: Matthew Richmond Date: Fri, 8 Mar 2024 17:45:43 -0700 Subject: [PATCH] Update project-structure.md Small path update --- docs/pages/guides/project-structure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/guides/project-structure.md b/docs/pages/guides/project-structure.md index 2c6464a9e..95d0018d9 100644 --- a/docs/pages/guides/project-structure.md +++ b/docs/pages/guides/project-structure.md @@ -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])