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.

remove duplicate schema

Kiran Ka0ad9067feb8
diff --git a/apps/web/lib/zod/schemas/programs.ts b/apps/web/lib/zod/schemas/programs.ts
index e2c2b818b9..79204d572d 100644
--- a/apps/web/lib/zod/schemas/programs.ts
+++ b/apps/web/lib/zod/schemas/programs.ts
@@ -1,21 +1,6 @@
import { CommissionType, ProgramType } from "@prisma/client";
import { z } from "zod";
-export const programSchema = z.object({
- id: z.string(),
- name: z.string(),
- slug: z.string(),
- logo: z.string().nullable(),
- type: z.nativeEnum(ProgramType),
- cookieLength: z.number(),
- minimumPayout: z.number(),
- commissionAmount: z.number(),
- commissionType: z.nativeEnum(CommissionType),
- recurringCommission: z.boolean(),
- recurringDuration: z.number(),
- isLifetimeRecurring: z.boolean(),
-});
-
export const createProgramSchema = z.object({
name: z.string(),
type: z.nativeEnum(ProgramType),
@@ -25,4 +10,4 @@ export const createProgramSchema = z.object({
minimumPayout: z.number(),
recurringDuration: z.number(),
isLifetimeRecurring: z.boolean(),
-});
\ No newline at end of file
+});