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 schema

Kiran K511d0ed96cfd
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index ab33d17be0..7000f5bbcb 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -12,6 +12,7 @@ import {
parseUrlSchema,
parseUrlSchemaAllowEmpty,
} from "./utils";
+import { webhookSchema } from "./webhooks";
export const getUrlQuerySchema = z.object({
url: parseUrlSchema,
@@ -490,6 +491,11 @@ export const LinkSchema = z
tags: TagSchema.array()
.nullable()
.describe("The tags assigned to the short link."),
+ webhooks: webhookSchema
+ .pick({ id: true, name: true, url: true })
+ .array()
+ .nullable()
+ .describe("The webhooks assigned to the short link."),
comments: z
.string()
.nullable()