The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix getLinkOrThrow
Steven Tey544685bff840
diff --git a/apps/web/lib/api/links/get-link-or-throw.ts b/apps/web/lib/api/links/get-link-or-throw.tsindex 0c4f3376c9..f10998bae8 100644--- a/apps/web/lib/api/links/get-link-or-throw.ts+++ b/apps/web/lib/api/links/get-link-or-throw.ts@@ -13,6 +13,7 @@ interface GetLinkParams {externalId?: string;domain?: string;key?: string;+ includeUser?: boolean;includeWebhooks?: boolean;}@@ -23,6 +24,7 @@ export const getLinkOrThrow = async (params: GetLinkParams) => {domain,key,externalId,+ includeUser = false,includeWebhooks = false,} = params;let link: Link | null = null;@@ -48,7 +50,7 @@ export const getLinkOrThrow = async (params: GetLinkParams) => {},include: {webhooks: includeWebhooks,- user: true,+ user: includeUser,},});}@@ -69,7 +71,7 @@ export const getLinkOrThrow = async (params: GetLinkParams) => {},include: {webhooks: includeWebhooks,- user: true,+ user: includeUser,},});}diff --git a/apps/web/lib/swr/use-link.ts b/apps/web/lib/swr/use-link.tsindex 3f2c64916d..b6a279128a 100644--- a/apps/web/lib/swr/use-link.ts+++ b/apps/web/lib/swr/use-link.ts@@ -18,6 +18,7 @@ export default function useLink(workspaceId,domain: linkIdOrLink.domain,key: linkIdOrLink.slug,+ includeUser: "true",includeWebhooks: "true",})}`),fetcher,