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.

Add linkProps to createPartner

Steven Tey68f2f7fba3c1
diff --git a/apps/web/lib/zod/schemas/partners.ts b/apps/web/lib/zod/schemas/partners.ts
index 1fc775d979..346e4c3dc1 100644
--- a/apps/web/lib/zod/schemas/partners.ts
+++ b/apps/web/lib/zod/schemas/partners.ts
@@ -7,7 +7,7 @@ import {
import { COUNTRY_CODES } from "@dub/utils";
import { z } from "zod";
import { CustomerSchema } from "./customers";
-import { LinkSchema } from "./links";
+import { createLinkBodySchema, LinkSchema } from "./links";
import { getPaginationQuerySchema } from "./misc";
import { ProgramEnrollmentSchema } from "./programs";
import { parseDateSchema } from "./utils";
@@ -197,6 +197,7 @@ export const createPartnerSchema = z.object({
.max(5000)
.nullish()
.describe("A brief description of the partner and their background."),
+ linkProps: createLinkBodySchema.partial().optional(),
});
export const onboardPartnerSchema = createPartnerSchema