Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: dub
Marc Seitzef5b23f53b43
diff --git a/lib/dub.ts b/lib/dub.tsindex c0e172a0..e8188f38 100644--- a/lib/dub.ts+++ b/lib/dub.ts@@ -10,7 +10,7 @@ export async function getDubDiscountForExternalUserId(externalId: string) {externalId,includeExpandedFields: true,});- const first = customers[0];+ const first = customers.result[0];const couponId =process.env.NODE_ENV !== "production" && first?.discount?.couponTestId? first.discount.couponTestId