The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update domain selection in import routes
Kiran Kf58fa76efdab
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/import/bitly/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/import/bitly/route.tsindex cef88dafee..495ce21f6d 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/import/bitly/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/import/bitly/route.ts@@ -54,6 +54,7 @@ export const POST = withWorkspace(async ({ req, workspace, session }) => {const domains = await prisma.domain.findMany({where: { projectId: workspace.id },+ select: { slug: true },});// check if there are domains that are not in the workspacediff --git a/apps/web/app/api/workspaces/[idOrSlug]/import/rebrandly/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/import/rebrandly/route.tsindex 7d98ddccfc..405b6d71bc 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/import/rebrandly/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/import/rebrandly/route.ts@@ -70,6 +70,7 @@ export const POST = withWorkspace(async ({ req, workspace, session }) => {const domains = await prisma.domain.findMany({where: { projectId: workspace.id },+ select: { slug: true },});// check if there are domains that are not in the workspacediff --git a/apps/web/app/api/workspaces/[idOrSlug]/import/short/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/import/short/route.tsindex 14f5b1af71..3154ff7969 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/import/short/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/import/short/route.ts@@ -64,6 +64,7 @@ export const POST = withWorkspace(async ({ req, workspace, session }) => {const domains = await prisma.domain.findMany({where: { projectId: workspace.id },+ select: { slug: true },});// check if there are domains that are not in the workspace