import { NextResponse } from "next/server";
import prisma from "@/lib/prisma";

export async function POST(_: Request, context: { params: Promise<{ id: string }> }) {
  const { id } = await context.params;
  const updated = await prisma.partnerInquiry.update({ where: { id }, data: { status: "approved", approvedAt: new Date() } });
  return NextResponse.json({ inquiry: updated });
}


