mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Delete & View Notification Providers
This commit is contained in:
@@ -3,7 +3,7 @@ import prisma from "@/app/prisma";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
const schema = z.object({
|
||||
notificationId: z.number(),
|
||||
notificationId: z.string(),
|
||||
});
|
||||
|
||||
export async function DELETE(request: NextRequest) {
|
||||
@@ -12,7 +12,7 @@ export async function DELETE(request: NextRequest) {
|
||||
|
||||
try {
|
||||
const notification = await prisma.notificationProvider.delete({
|
||||
where: { id: notificationId.notificationId },
|
||||
where: { id: parseInt(notificationId.notificationId) },
|
||||
});
|
||||
|
||||
return NextResponse.json(notification);
|
||||
|
||||
Reference in New Issue
Block a user