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 route.ts

Kiran K0d809d3cec5c
diff --git a/apps/web/app/(ee)/api/partners/links/route.ts b/apps/web/app/(ee)/api/partners/links/route.ts
index 62b17b02a8..9aaf20889e 100644
--- a/apps/web/app/(ee)/api/partners/links/route.ts
+++ b/apps/web/app/(ee)/api/partners/links/route.ts
@@ -94,15 +94,8 @@ export const POST = withWorkspace(
where: partnerId
? { partnerId_programId: { partnerId, programId } }
: { tenantId_programId: { tenantId: tenantId!, programId } },
- select: {
- partnerId: true,
- tenantId: true,
- discount: {
- select: {
- id: true,
- couponId: true,
- },
- },
+ include: {
+ discount: true,
},
});