The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
test improvements
Pedro Ladeirab5bfa4a2a9a5
diff --git a/apps/web/app/(ee)/api/customers/[id]/reattribute/route.ts b/apps/web/app/(ee)/api/customers/[id]/reattribute/route.tsindex f84a3d36c2..9c7da5b271 100644--- a/apps/web/app/(ee)/api/customers/[id]/reattribute/route.ts+++ b/apps/web/app/(ee)/api/customers/[id]/reattribute/route.ts@@ -23,7 +23,7 @@ import {reattributeCustomerBodySchema,} from "@/lib/zod/schemas/customers";import { INACTIVE_ENROLLMENT_STATUSES } from "@/lib/zod/schemas/partners";-import { nanoid } from "@dub/utils";+import { ACME_WORKSPACE_ID, nanoid } from "@dub/utils";import { NextResponse } from "next/server";// POST /api/customers/:id/reattribute – Reattribute a customer to a different partner@@ -107,10 +107,12 @@ export const POST = withWorkspace(});}- await assertRateLimit({- policy: RATELIMIT_POLICIES.reattributeCustomer,- identifier: workspace.id,- });+ if (workspace.id !== ACME_WORKSPACE_ID) {+ await assertRateLimit({+ policy: RATELIMIT_POLICIES.reattributeCustomer,+ identifier: workspace.id,+ });+ }if (events.length === 0 &&