The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
missed some spot
Kiran K8dbab9f7a873
diff --git a/apps/web/lib/api/domains/transform-domain.ts b/apps/web/lib/api/domains/transform-domain.tsindex 66a4f01394..eb4aef5076 100644--- a/apps/web/lib/api/domains/transform-domain.ts+++ b/apps/web/lib/api/domains/transform-domain.ts@@ -1,38 +1,6 @@import { DomainSchema } from "@/lib/zod/schemas/domains";import { Domain, Link } from "@prisma/client";-// export const transformDomain = (-// domain: Domain & Pick<Link, "url" | "rewrite" | "clicks" | "expiredUrl">,-// ) => {-// const {-// id,-// slug,-// verified,-// primary,-// archived,-// placeholder,-// expiredUrl,-// url,-// rewrite,-// clicks,-// } = domain;--// return DomainSchema.parse({-// id,-// slug,-// verified,-// primary,-// archived,-// placeholder,-// expiredUrl,-// target: url || null,-// type: rewrite ? "rewrite" : "redirect",-// clicks,-// createdAt: domain.createdAt,-// updatedAt: domain.updatedAt,-// });-// };-type Input = Domain & {links: Pick<Link, "url" | "rewrite" | "clicks" | "expiredUrl">[];};