QC Event
# Fix - Loading card - Create : saat memilih jam sesuai dengan batas jam di hari itu ## No isuuee
This commit is contained in:
@@ -9,8 +9,18 @@ export async function Event_funDeleteById(eventId: string) {
|
||||
id: eventId,
|
||||
},
|
||||
});
|
||||
|
||||
if (!del) return { status: 400, message: "Gagal hapus data" };
|
||||
|
||||
// const delTemporary = await prisma.event.update({
|
||||
// where: {
|
||||
// id: eventId,
|
||||
// },
|
||||
// data: {
|
||||
// active: false,
|
||||
// },
|
||||
// });
|
||||
// if (!delTemporary) return { status: 400, message: "Gagal hapus data" };
|
||||
|
||||
revalidatePath("/dev/event/main/status_page");
|
||||
return {
|
||||
status: 200,
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
|
||||
export async function Event_getByStatusId(statusId: string, authorId: string) {
|
||||
export async function Event_getListByStatusId(
|
||||
statusId: string,
|
||||
authorId: string
|
||||
) {
|
||||
if (statusId === "1") {
|
||||
const data = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
Reference in New Issue
Block a user