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 unused params

Kiran K6be187e86a3c
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
index 0fcc93f430..ed8f5f9d70 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/route.ts
@@ -13,7 +13,7 @@ import { NextResponse } from "next/server";
// GET /api/workspaces/[idOrSlug] – get a specific workspace by id or slug
export const GET = withWorkspace(
- async ({ workspace, session, headers }) => {
+ async ({ workspace, headers }) => {
const domains = await prisma.domain.findMany({
where: {
projectId: workspace.id,
@@ -43,7 +43,7 @@ export const GET = withWorkspace(
// PATCH /api/workspaces/[idOrSlug] – update a specific workspace by id or slug
export const PATCH = withWorkspace(
- async ({ req, workspace, session }) => {
+ async ({ req, workspace }) => {
const { name, slug } = await updateWorkspaceSchema.parseAsync(
await req.json(),
);