Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update process-link.ts

Steven Tey82201e3c53c7
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index 2a3a52ad63..46c8e4327c 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -1,8 +1,4 @@
-import {
- getFeatureFlags,
- isBlacklistedDomain,
- updateConfig,
-} from "@/lib/edge-config";
+import { isBlacklistedDomain, updateConfig } from "@/lib/edge-config";
import { getPangeaDomainIntel } from "@/lib/pangea";
import { checkIfUserExists, getRandomKey } from "@/lib/planetscale";
import { prisma } from "@/lib/prisma";
@@ -207,20 +203,6 @@ export async function processLink<T extends Record<string, any>>({
};
}
- if (domain === "cal.link") {
- const flags = await getFeatureFlags({
- workspaceId: workspace?.id,
- });
- if (!flags?.callink) {
- return {
- link: payload,
- error:
- "You can only use the cal.link domain if you have beta access to it. Contact [email protected] to get access.",
- code: "forbidden",
- };
- }
- }
-
if (key?.includes("/")) {
// check if the user has access to the parent link
const parentKey = key.split("/")[0];