The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update response
Kiran K3d29b0308e5b
diff --git a/apps/web/app/api/domains/[domain]/transfer/route.ts b/apps/web/app/api/domains/[domain]/transfer/route.tsindex bc1a0ae051..77888699c9 100644--- a/apps/web/app/api/domains/[domain]/transfer/route.ts+++ b/apps/web/app/api/domains/[domain]/transfer/route.ts@@ -51,7 +51,7 @@ export const POST = withAuth(});}- await prisma.domain.update({+ const response = await prisma.domain.update({where: { slug: domain, projectId: workspace.id },data: { projectId: newWorkspaceId },});@@ -65,7 +65,7 @@ export const POST = withAuth(},});- return NextResponse.json({}, { headers });+ return NextResponse.json(response, { headers });},{ requiredRole: ["owner"] },);