Skip to content

chore: report cron week lookup errors clearly - #44

Merged
github-actions[bot] merged 1 commit into
mainfrom
cursor/small-meaningful-improvement-ae45
Jun 9, 2026
Merged

chore: report cron week lookup errors clearly#44
github-actions[bot] merged 1 commit into
mainfrom
cursor/small-meaningful-improvement-ae45

Conversation

@cursor

@cursor cursor Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Check the current_week RPC error in the demo-day cron route before using its data
  • Return a clearer 500 response that includes the Supabase error message when the week lookup fails

Why it matters

This makes cron failures easier to diagnose instead of reporting every week lookup problem as a generic missing-week result.

Verification

  • npx eslint src/app/api/cron/demo-day/route.ts
  • npx tsc --noEmit --pretty false --target ES2017 --lib dom,dom.iterable,esnext --module esnext --moduleResolution bundler --jsx react-jsx --strict --esModuleInterop --skipLibCheck src/app/api/cron/demo-day/route.ts

Note: npm run build compiled successfully, then failed during global type checking because open-next.config.ts imports @opennextjs/cloudflare, which is not installed from the current package.json in this environment.

Open in Web View Automation 

Co-authored-by: Sahar <SaharPak@users.noreply.github.com>
@github-actions
github-actions Bot marked this pull request as ready for review June 9, 2026 10:04
@github-actions
github-actions Bot merged commit 03ab2f2 into main Jun 9, 2026
1 check passed
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