brianc / node-postgres-docs

Documentation for node-postgres
https://node-postgres.com
MIT License
98 stars 94 forks source link

Fix typo in project structure example #125

Closed mikemotion closed 3 years ago

mikemotion commented 3 years ago

Database adapter variable name do not correspond with the one in the example.

netlify[bot] commented 3 years ago

Hey! A preview of the changes is deployed on netlify to take a look at! :)

Built with commit 11827a9064ff894b1d0b46b837c4693559ed848f

https://deploy-preview-125--hopeful-clarke-f36d36.netlify.app

igolskyi commented 3 years ago

Database adapter variable name do not correspond with the one in the example.

app.get('/:id'...) isn't db adapter variable name. It's express app route. Please, see documentation http://expressjs.com/en/4x/api.html#app

http://expressjs.com/en/guide/routing.html#route-paths

mikemotion commented 3 years ago

Now I see. I got confused. Sorry for the mistake. Thanks for the clarification @igolskyi