Skip to content

fix(chat): resolve participants route params#121

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/qryptchat-participants-route-params
Jul 1, 2026
Merged

fix(chat): resolve participants route params#121
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/qryptchat-participants-route-params

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • resolves Promise-based Next.js route params before reading the conversation id in /api/chat/conversations/[id]/participants
  • adds regression coverage for async params on successful participant lookup and missing params

Why

Next.js 15 can provide dynamic route params asynchronously. This handler read params.id directly, so async params made valid participant requests look like missing conversation-id requests.

Validation

  • corepack pnpm exec vitest run --config %TEMP%/qryptchat-vitest-no-react.config.mjs src/app/api/chat/conversations/[id]/participants/route.test.js
  • corepack pnpm exec oxlint src/app/api/chat/conversations/[id]/participants/route.js src/app/api/chat/conversations/[id]/participants/route.test.js

@ralyodio ralyodio merged commit c6c76d9 into profullstack:master Jul 1, 2026
8 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.

2 participants