The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update comments
Steven Teyb9c3392a13ba
diff --git a/apps/web/lib/api/domains/get-domain-or-throw.ts b/apps/web/lib/api/domains/get-domain-or-throw.tsindex 02b99e06bc..57ab084bdc 100644--- a/apps/web/lib/api/domains/get-domain-or-throw.ts+++ b/apps/web/lib/api/domains/get-domain-or-throw.ts@@ -23,9 +23,13 @@ export const getDomainOrThrow = async ({});}- // if domain is defined:- // - it's a dub domain and dubDomainChecks is required, check if the user is part of the dub workspace- // - it's a custom domain, check if the domain belongs to the workspace+ /* if domain is defined:+ - it's a dub domain:+ - if dubDomainChecks is true, check if the user is part of the dub workspace+ - if dubDomainChecks is false, do nothing+ - it's a custom domain:+ - check if the domain belongs to the workspace+ */if (isDubDomain(domain)) {if (dubDomainChecks && workspace.id !== DUB_WORKSPACE_ID) {throw new DubApiError({