- Tampilan admin untuk komentar
- Hapus komentar
- Hapus postingan
- Lihat report
- Search topik forum
## feat
### No issue
This commit is contained in:
2024-03-25 17:44:27 +08:00
parent de0790aade
commit 8af6c6265f
55 changed files with 2213 additions and 218 deletions

View File

@@ -0,0 +1,24 @@
"use server";
import prisma from "@/app/lib/prisma";
import { revalidatePath } from "next/cache";
export async function forum_funEditStatusPostingById(
postingId: string,
statusId: number
) {
const updt = await prisma.forum_Posting.update({
where: {
id: postingId,
},
data: {
forumMaster_StatusPostingId: statusId,
},
});
if (!updt) return { status: 400, message: "Gagal update posting" };
revalidatePath("/dev/forum/main");
revalidatePath("/dev/forum/detail");
revalidatePath("/dev/forum/forumku");
return { status: 200, message: "Berhasil update posting" };
}