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

Kiran K45428c24e62e
diff --git a/apps/web/lib/api/audit-logs/schemas.ts b/apps/web/lib/api/audit-logs/schemas.ts
index 082ae248de..32c04c46da 100644
--- a/apps/web/lib/api/audit-logs/schemas.ts
+++ b/apps/web/lib/api/audit-logs/schemas.ts
@@ -103,6 +103,7 @@ export const auditLogTarget = z.union([
termsUrl: true,
holdingPeriodDays: true,
minPayoutAmount: true,
+ autoApprovePartnersEnabledAt: true,
}).optional(),
}),
@@ -137,16 +138,6 @@ export const auditLogTarget = z.union([
}),
}),
- z.object({
- type: z.literal("program"),
- id: z.string(),
- metadata: ProgramSchema.pick({
- name: true,
- supportEmail: true,
- autoApprovePartnersEnabledAt: true,
- }).optional(),
- }),
-
z.object({
type: z.union([z.literal("commission"), z.literal("clawback")]),
id: z.string(),