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.

remove console log

Steven Teycba7bea53e56
diff --git a/apps/web/app/api/analytics/share/route.ts b/apps/web/app/api/analytics/share/route.ts
index cd5108dfdd..79108d2f6c 100644
--- a/apps/web/app/api/analytics/share/route.ts
+++ b/apps/web/app/api/analytics/share/route.ts
@@ -48,19 +48,3 @@ export const POST = withWorkspace(
requiredPermissions: ["links.write"],
},
);
-// DELETE /api/analytics/share – delete a shared dashboard for a link
-export const DELETE = withWorkspace(async ({ searchParams, workspace }) => {
- const { domain, key } = domainKeySchema.parse(searchParams);
-
- const link = await getLinkOrThrow({
- workspace,
- domain,
- key,
- });
-
- const response = await prisma.sharedDashboard.delete({
- where: { linkId: link.id },
- });
-
- return NextResponse.json({ dashboardId: response.id });
-});
diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
index 8323bd1aee..6fe4669c03 100644
--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx
@@ -63,7 +63,6 @@ export default async function SharePage({
if (!data?.link) {
notFound();
}
- console.log({ data });
return (
<Suspense fallback={<div className="h-screen w-full bg-gray-50" />}>