Skip to content

编排相关API代码 - #9

Open
iamcarlchen wants to merge 1 commit into
mainfrom
codex/och_api
Open

编排相关API代码#9
iamcarlchen wants to merge 1 commit into
mainfrom
codex/och_api

Conversation

@iamcarlchen

Copy link
Copy Markdown
Member

No description provided.

@vercel

vercel Bot commented May 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mokelay-server Ready Ready Preview, Comment May 10, 2026 2:12am

@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: dc65387202

ℹ️ 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 on lines +387 to +388
} catch {
return undefined

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not swallow published API database load errors

When DATABASE_URL is configured but the database is unavailable, migrated incorrectly, or the query otherwise fails, this catch makes loadApiJson() treat the published API as absent and fall back to bundled/filesystem JSON. For database-only APIs that becomes a misleading 404, and for UUIDs that also exist as assets it can serve stale bundled behavior instead of failing, which is especially risky after publishing an updated API. Only the expected “DB not configured/table not present” cases should fall back; connection/query errors should surface.

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