Skip to content

Feat/data model - #5

Merged
codus-async merged 2 commits into
mainfrom
feat/data-model
Oct 12, 2026
Merged

codus-async merged 2 commits into
mainfrom
feat/data-model

Conversation

@codus-async

Copy link
Copy Markdown
Owner

No description provided.

Bello Qudus Folohunsho added 2 commits October 12, 2026 09:23
Better Auth swallows anything that is not one of its own API errors and
returns Response(null, { status: 500 }), so a database outage reached the
client as an empty 500 and the express error handler never ran.

Set onAPIError.throw so those errors escape better auth, and add an express
error handler that logs the real cause and answers with json. A failed auth
call now reads {"error":"Internal server error"} instead of an empty body,
while better-auth's own API errors keep their json shape.

Covered by a regression test that makes the prisma mock throw.
The step grepped render.yaml for the literal string "prisma migrate deploy",
but render.yaml calls it indirectly through npm run db:deploy, so the step
failed while the deploy itself was fine.

Reword the step to assert both links: render.yaml runs db:deploy, and
backend/package.json defines db:deploy as prisma migrate deploy.
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ceba4124-130a-4419-8f9d-a344b61f1707

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T08:34:23.942101Z 4e2594f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codus-async
codus-async merged commit 253cd3d into main Oct 12, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e2594f220

ℹ️ 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".

Comment thread backend/src/app.ts
Comment on lines +20 to +21
// catches anything a route lets out: db outages, bugs, bad json.
// without it express falls back to an html body with a stack trace.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Collapse this comment to a single line

The repository requires comments to be single line, but this newly introduced comment spans two lines (as does the corresponding note in lib/auth). Collapse each into one line to keep the changed code compliant with the project convention.

AGENTS.md reference: AGENTS.md:L63-L63

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant