The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fixes
Steven Teycb98fe01c992
diff --git a/lib/api/links.ts b/lib/api/links.tsindex 13e5b92450..a8ec1b6fab 100644--- a/lib/api/links.ts+++ b/lib/api/links.ts@@ -198,11 +198,7 @@ export async function addLink(link: LinkProps) {return response;}-export async function editLink(- link: LinkProps,- oldKey: string,- projectSlug: string,-) {+export async function editLink(link: LinkProps, oldKey: string) {const {id,domain,diff --git a/pages/api/links/[key]/index.ts b/pages/api/links/[key]/index.tsindex f7b0cc9227..d1a05da270 100644--- a/pages/api/links/[key]/index.ts+++ b/pages/api/links/[key]/index.ts@@ -51,7 +51,6 @@ export default withUserAuth(userId: session.user.id,},oldKey,- "dub",);if (response === null) {return res.status(400).json({ error: "Key already exists" });diff --git a/pages/api/projects/[slug]/domains/[domain]/links/[key]/index.ts b/pages/api/projects/[slug]/domains/[domain]/links/[key]/index.tsindex 9711aab7cb..c068ea27df 100644--- a/pages/api/projects/[slug]/domains/[domain]/links/[key]/index.ts+++ b/pages/api/projects/[slug]/domains/[domain]/links/[key]/index.ts@@ -12,12 +12,7 @@ export const config = {export default withProjectAuth(async (req: NextApiRequest, res: NextApiResponse, project) => {- const {- slug,- domain,- key: oldKey,- } = req.query as {- slug: string;+ const { domain, key: oldKey } = req.query as {domain: string;key: string;};@@ -42,7 +37,6 @@ export default withProjectAuth(...req.body,},oldKey,- slug,);if (response === null) {return res.status(400).json({ error: "Key already exists" });diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 7f85cd3f39..b576706120 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -136,7 +136,7 @@ model Link {proxy Boolean @default(false) // Proxy to use custom OG tags – if false, will use OG tags from target urltitle String? // OG title for the link (e.g. Dub - Open-Source Bitly Alternative)- description String? @db.VarChar(240) // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)+ description String? @db.VarChar(280) // OG description for the link (e.g. An open-source link management tool for modern marketing teams to create, share, and track short links.)image String? @db.LongText // OG image for the link (e.g. https://dub.sh/og-image.png)// UTM parameters