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 recordLink for TB

Steven Tey6e12157981b1
diff --git a/apps/web/lib/tinybird/record-link.ts b/apps/web/lib/tinybird/record-link.ts
index 97593cdfad..dfa5faff41 100644
--- a/apps/web/lib/tinybird/record-link.ts
+++ b/apps/web/lib/tinybird/record-link.ts
@@ -8,11 +8,22 @@ export const dubLinksMetadataSchema = z.object({
key: z.string(),
url: z.string().default(""),
tag_ids: z.array(z.string()).default([]),
+ folder_id: z
+ .string()
+ .nullish()
+ .transform((v) => (v ? v : "")),
tenant_id: z
.string()
.nullable()
- .transform((v) => (v === null ? "" : v)),
- program_id: z.string().default(""),
+ .transform((v) => (v ? v : "")),
+ program_id: z
+ .string()
+ .nullable()
+ .transform((v) => (v ? v : "")),
+ partner_id: z
+ .string()
+ .nullish()
+ .transform((v) => (v ? v : "")),
workspace_id: z
.string()
.nullish()