Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Skip unused commission columns in the partner earnings list

Rafifcc9fa46985a
diff --git a/apps/web/lib/api/partner-profile/get-earnings-for-partner.ts b/apps/web/lib/api/partner-profile/get-earnings-for-partner.ts
index c1eadccea1..3a5d7500cb 100644
--- a/apps/web/lib/api/partner-profile/get-earnings-for-partner.ts
+++ b/apps/web/lib/api/partner-profile/get-earnings-for-partner.ts
@@ -61,6 +61,12 @@ export async function getEarningsForPartner(
lte: endDate,
},
},
+ // the response schema drops these fields, so don't load them
+ omit: {
+ metadata: true,
+ userId: true,
+ invoiceId: true,
+ },
include: {
customer: {
select: {