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 payout-status-changed.ts

Steven Teydc4e9386d026
diff --git a/apps/web/app/api/paypal/webhook/payout-status-changed.ts b/apps/web/app/api/paypal/webhook/payout-status-changed.ts
index 0abe17012f..3c3d96ee26 100644
--- a/apps/web/app/api/paypal/webhook/payout-status-changed.ts
+++ b/apps/web/app/api/paypal/webhook/payout-status-changed.ts
@@ -29,7 +29,7 @@ export async function payoutStatusChanged(event: any) {
const payoutItemId = body.resource.payout_item_id;
const payoutId = body.resource.payout_item.sender_item_id;
- const payout = await prisma.payout.findFirst({
+ const payout = await prisma.payout.findUnique({
where: {
id: payoutId,
},