api : update announcement

This commit is contained in:
lukman
2024-07-29 17:29:20 +08:00
parent f7685af97b
commit 3cd87a44b2
4 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ import { NextRequest } from "next/server";
export async function deleteAnnouncement(req: NextRequest) {
try {
const data = await req.json();
const update = await prisma.annoucement.update({
const update = await prisma.announcement.update({
where: {
id: data.id,
},