The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update backfill-referral-links.ts
Kiran K0907f4d043e2
diff --git a/apps/web/scripts/backfill-referral-links.ts b/apps/web/scripts/backfill-referral-links.tsindex 9fc56ced65..c2a9a399d9 100644--- a/apps/web/scripts/backfill-referral-links.ts+++ b/apps/web/scripts/backfill-referral-links.ts@@ -1,7 +1,4 @@-import {- normalizeWorkspaceId,- prefixWorkspaceId,-} from "@/lib/api/workspace-id";+import { prefixWorkspaceId } from "@/lib/api/workspace-id";import { dub } from "@/lib/dub";import { prisma } from "@dub/prisma";import "dotenv-flow/config";@@ -36,7 +33,7 @@ async function main() {domain: "refer.dub.co",key: workspace.slug,url: "https://dub.co",- externalId: normalizeWorkspaceId(workspace.id), // attaching the workspace ID as the externalId for easy updates later on: https://d.to/externalId+ externalId: prefixWorkspaceId(workspace.id), // attaching the workspace ID as the externalId for easy updates later on: https://d.to/externalIdtagIds: ["cm000srqx0004o6ldehod07zc"], // tagging these links with the "Referral links" tagtrackConversion: true, // enable conversion tracking for these links})),