Return early if detectBot in track/open#3460
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughRefactors the /track/open API response to use a reusable Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@apps/web/app/`(ee)/api/track/open/route.ts:
- Around line 145-150: The response object passed to
trackOpenResponseSchema.parse is double-nesting the link (currently using link:
{ link: linkData }); update the parse call in
apps/web/app/(ee)/api/track/open/route.ts so that it sets link: linkData (not an
extra { link: ... } wrapper) — locate the trackOpenResponseSchema.parse
invocation and replace the nested object with the direct linkData reference to
satisfy the schema.
Summary by CodeRabbit
Bug Fixes
Documentation