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.

fix route

Kiran K2e19c6a0dc47
diff --git a/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts b/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
index 420f75b46e..f7a68f6419 100644
--- a/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
+++ b/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
@@ -25,9 +25,6 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
customer: true,
},
},
- _count: {
- select: { sales: true },
- },
},
});
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 92478d948f..bb39da350f 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -126,6 +126,5 @@ export const PayoutWithSalesSchema = PayoutSchema.and(
customer: CustomerSchema,
}),
),
- _count: z.object({ sales: z.number() }),
}),
);