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 route.ts

Tim Wilson657d6f4f2b2c
diff --git a/apps/web/app/api/dashboards/route.ts b/apps/web/app/api/dashboards/route.ts
index f9d6ef2d4f..80f17ba9a6 100644
--- a/apps/web/app/api/dashboards/route.ts
+++ b/apps/web/app/api/dashboards/route.ts
@@ -68,7 +68,7 @@ export const POST = withWorkspace(
} else {
const { folderId } = params;
- const folder = await verifyFolderAccess({
+ await verifyFolderAccess({
workspace,
userId: session.user.id,
folderId: folderId,
@@ -84,7 +84,6 @@ export const POST = withWorkspace(
},
});
- // for backwards compatibility, we'll update the link to have publicStats = true
waitUntil(
prisma.link.updateMany({
where: { folderId },