Add paid at to commissions API and export#4048
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughAdds ChangesCommission paidAt field
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 full review. any breaking changes? |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
echo "=== route.ts ==="
cat apps/web/app/\(ee\)/api/commissions/route.ts
echo ""
echo "=== format-commissions-for-export.ts ==="
cat apps/web/lib/api/commissions/format-commissions-for-export.ts
echo ""
echo "=== get-commissions.ts ==="
cat apps/web/lib/api/commissions/get-commissions.ts
echo ""
echo "=== commissions.ts (schemas) ==="
cat apps/web/lib/zod/schemas/commissions.tsLength of output: 31097 🏁 Script executed: #!/bin/bash
echo "=== Find all callers of getCommissions ==="
rg -n "getCommissions" --type=ts -B2 -A2
echo ""
echo "=== Check if payout model/table has paidAt field in Prisma schema ==="
fd "schema.prisma" | head -5 | xargs grep -n "paidAt\|model Payout" 2>/dev/null || echo "Prisma schema not found in fd results"
echo ""
echo "=== Check export route for commissions ==="
fd "export" --type=f | grep -i commission | head -10
echo ""
echo "=== Check CommissionDetailSchema usage to see paidAt collision ==="
rg -n "CommissionDetailSchema\|CommissionEnrichedSchema" --type=ts -C2
echo ""
echo "=== Check for other callers of getCommissions that may not need payout ==="
rg -n "from.*get-commissions\|require.*get-commissions" --type=tsLength of output: 17546
Review SummaryNo breaking changes. All modifications are purely additive:
File-by-file findings
|
Summary by CodeRabbit