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 K8a31e8cd44cc
diff --git a/apps/web/app/(ee)/api/discount-codes/route.ts b/apps/web/app/(ee)/api/discount-codes/route.ts
index e0e27655c9..21a397a4ca 100644
--- a/apps/web/app/(ee)/api/discount-codes/route.ts
+++ b/apps/web/app/(ee)/api/discount-codes/route.ts
@@ -73,7 +73,7 @@ export const POST = withWorkspace(
});
}
- const discount = programEnrollment.discount;
+ const { discount } = programEnrollment;
if (!discount) {
throw new DubApiError({