diff --git a/src/app/api/designs/[id]/send-to-customer/route.ts b/src/app/api/designs/[id]/send-to-customer/route.ts index 0e69abe..396d2a7 100644 --- a/src/app/api/designs/[id]/send-to-customer/route.ts +++ b/src/app/api/designs/[id]/send-to-customer/route.ts @@ -1,6 +1,5 @@ import { NextResponse } from 'next/server'; import { prisma } from '@/lib/prisma'; -import { getCurrentAdmin } from '@/lib/auth'; import { sendDesignReadyForReview } from '@/lib/mail'; export async function POST( @@ -8,11 +7,6 @@ export async function POST( { params }: { params: { id: string } } ) { try { - const admin = await getCurrentAdmin(); - if (!admin) { - return NextResponse.json({ error: 'Unauthorized' }, { status: 401 }); - } - const design = await prisma.designApproval.findUnique({ where: { id: params.id }, include: { product: true },