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

Steven Teyd00d34765d11
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 15ef4ce6c4..1f0bea3a50 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -126,7 +126,7 @@ export const PartnerSchema = z.object({
updatedAt: z.date(),
});
-// Used by GET+POST /api/partners and partner.created webhook
+// Used externally by GET+POST /api/partners and partner.created webhook
export const EnrolledPartnerSchema = PartnerSchema.pick({
id: true,
name: true,
@@ -156,6 +156,7 @@ export const EnrolledPartnerSchema = PartnerSchema.pick({
applicationId: z.string().nullish(),
});
+// Used internally in the Dub dashboard for partners table
export const EnrolledPartnerSchemaWithExpandedFields =
EnrolledPartnerSchema.merge(PartnerOnlinePresenceSchema);