Skip to content

Validate module review page query#20

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-review-page-pagination
Jun 18, 2026
Merged

Validate module review page query#20
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-review-page-pagination

Conversation

@phucnguyen1707

Copy link
Copy Markdown
Contributor

Summary

Fixes #14 by making the module review pagination fallback to page 1 when the page query is non-numeric, instead of letting NaN reach the Supabase range call.

Verification

  • pnpm --filter @profullstack/threatcrush-web test src/app/api/modules/[slug]/review/tests/route.test.ts
  • git diff --check origin/master...HEAD

@ralyodio ralyodio merged commit 2d37cfc into profullstack:master Jun 18, 2026
14 of 15 checks 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.

Module reviews API passes NaN pagination values to Supabase

2 participants