Bug Fixes

This commit is contained in:
headlesdev
2025-05-24 21:15:52 +02:00
parent fe6586d051
commit d095524291
11 changed files with 46 additions and 30 deletions

View File

@@ -3,7 +3,7 @@ import prisma from "@/app/prisma";
import { z } from "zod/v4";
const schema = z.object({
siteId: z.string(),
siteId: z.number(),
});
export async function DELETE(request: NextRequest) {
@@ -12,7 +12,7 @@ export async function DELETE(request: NextRequest) {
try {
const site = await prisma.site.delete({
where: { id: Number(siteId.siteId) },
where: { id: siteId.siteId },
});
return NextResponse.json(site);