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.

Update send-paypal-payouts.ts

Kiran Kdb2aa0a33901
diff --git a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/send-paypal-payouts.ts b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/send-paypal-payouts.ts
index de5f2dbe0b..65d2b07d78 100644
--- a/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/send-paypal-payouts.ts
+++ b/apps/web/app/(ee)/api/cron/payouts/charge-succeeded/send-paypal-payouts.ts
@@ -20,9 +20,19 @@ export async function sendPaypalPayouts({ payload }: { payload: Payload }) {
},
},
},
- include: {
- partner: true,
- program: true,
+ select: {
+ id: true,
+ amount: true,
+ partner: {
+ select: {
+ paypalEmail: true,
+ },
+ },
+ program: {
+ select: {
+ name: true,
+ },
+ },
},
});