Repository navigation
Conversation
Partners now get the new commission email only when the earnings are $10 or more. The workspace owner email for the first sale is unchanged.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Notification eligibility and recipients apps/web/lib/api/partners/notify-partner-commission.ts |
Partner email recipients are collected only when earnings meet the 1,000-cent threshold. If neither the earnings threshold nor the existing first-sale condition applies, the function returns before fetching notification recipients and link data. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: steven-tey
Merge Risk: 
Minimal · up to 6c2d9
-
The change matches the stated notification behavior and is ready to merge.
Pre-merge checks: 
5
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
Changes
Fixes https://linear.app/dubinc/issue/ENG-1918/skip-partner-commission-emails-under-dollar10
Motivation
Partners got an email for every new commission, also for very small ones. Partners with many small commissions got a lot of email noise.
How to test
Summary by CodeRabbit