Skip to content

Fix webhook delete route params#101

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-webhook-delete-params
Jun 15, 2026
Merged

Fix webhook delete route params#101
ralyodio merged 1 commit into
profullstack:masterfrom
phucnguyen1707:fix-webhook-delete-params

Conversation

@phucnguyen1707

Copy link
Copy Markdown
Contributor

Summary: read the dynamic webhook id from withAuth route context instead of the undefined params variable; add a regression test that exercises DELETE /api/webhooks/[id] with async Next.js params and verifies the id/user filters. Verification: pnpm vitest run src/app/api/webhooks/[id]/route.test.js failed before the fix with ReferenceError: params is not defined; pnpm vitest run --config /tmp/vitest-qryptchat-api.config.js src/app/api/webhooks/[id]/route.test.js passes; pnpm exec oxlint src/app/api/webhooks/[id]/route.js src/app/api/webhooks/[id]/route.test.js passes. Note: the repo ESLint config currently cannot load locally because package globals is missing from the installed dependency graph, so I used oxlint for the changed files. Closes #97.

@ralyodio ralyodio merged commit 1dcecaa into profullstack:master Jun 15, 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.

Bug: Webhook DELETE handler crashes — undefined params variable

2 participants