The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Small fix
Kiran K90c2a4b6cb17
diff --git a/apps/web/lib/api/errors.ts b/apps/web/lib/api/errors.tsindex be2080e945..07d0ab331c 100644--- a/apps/web/lib/api/errors.ts+++ b/apps/web/lib/api/errors.ts@@ -145,8 +145,8 @@ export function handleApiError(error: any): ErrorResponse & { status: number } {return {error: {code: "internal_server_error",- message: error.message,- //"An internal server error occurred. Please contact our support if the problem persists.",+ message:+ "An internal server error occurred. Please contact our support if the problem persists.",doc_url: `${docErrorUrl}#internal_server_error`,},status: 500,diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.tsindex 360d4c0917..d0c2bb5fb6 100644--- a/apps/web/lib/auth/workspace.ts+++ b/apps/web/lib/auth/workspace.ts@@ -260,7 +260,7 @@ export const withWorkspace = (// edge case where linkId is an externalId and workspaceId was not provided (they must've used projectSlug instead)// in this case, we need to try fetching the link again- if (linkId.startsWith("ext_") && !link && !workspaceId) {+ if (linkId && linkId.startsWith("ext_") && !link && !workspaceId) {link = (await prisma.link.findUnique({where: {projectId_externalId: {