Align db contract with neon schema#43
Align db contract with neon schema#43badjoke-lab wants to merge 1 commit intofix/db-places-contractfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,28 @@ | |||
| import { Pool } from "pg"; | |||
There was a problem hiding this comment.
src/lib/db.ts now imports Pool from pg, but the package manifest/pnpm lock contain no pg entry and node_modules/pg is absent. When the new DB-backed routes (/api/places or /api/db/places) run in db mode, the server will fail to start with Cannot find module 'pg' before any query executes. Add the dependency or the DB paths remain unusable.
Useful? React with 👍 / 👎.
Summary
Testing
Codex Task