The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update guard.ts
Steven Teyda30e40a4a8c
diff --git a/apps/web/app/(ee)/api/e2e/guard.ts b/apps/web/app/(ee)/api/e2e/guard.tsindex e8bc25576b..c0b06036a9 100644--- a/apps/web/app/(ee)/api/e2e/guard.ts+++ b/apps/web/app/(ee)/api/e2e/guard.ts@@ -1,10 +1,11 @@import { DubApiError } from "@/lib/api/errors";import { WorkspaceProps } from "@/lib/types";+import { ACME_WORKSPACE_ID } from "@dub/utils";export function assertE2EWorkspace(- workspace: Pick<WorkspaceProps, "slug">,+ workspace: Pick<WorkspaceProps, "id">,): void {- if (workspace.slug !== "acme") {+ if (workspace.id !== ACME_WORKSPACE_ID) {throw new DubApiError({code: "forbidden",message: "E2E endpoints are restricted to the Acme test workspace.",