# fix
## Deskripsi : - Prisma seeder ### No Issue
This commit is contained in:
@@ -11,9 +11,8 @@ export async function AdminEvent_getListTableByStatusId(statudId: string) {
|
||||
where: {
|
||||
eventMaster_StatusId: "1",
|
||||
tanggal: {
|
||||
gte: new Date
|
||||
}
|
||||
|
||||
gte: new Date(),
|
||||
},
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
@@ -52,10 +51,11 @@ export async function AdminEvent_getListTableByStatusId(statudId: string) {
|
||||
if (statudId === "2") {
|
||||
const getReview = await prisma.event.findMany({
|
||||
orderBy: {
|
||||
createdAt: "desc",
|
||||
updatedAt: "desc",
|
||||
},
|
||||
where: {
|
||||
eventMaster_StatusId: "2",
|
||||
active: true,
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
|
||||
@@ -52,6 +52,7 @@ import adminNotifikasi_funUpdateIsReadById from "./notifikasi/fun/update/fun_upd
|
||||
import adminNotifikasi_findRouterJob from "./notifikasi/route_setting/job";
|
||||
import adminNotifikasi_findRouterForum from "./notifikasi/route_setting/forum";
|
||||
import { adminNotifikasi_findRouterVoting } from "./notifikasi/route_setting/voting";
|
||||
import { adminNotifikasi_findRouterEvent } from "./notifikasi/route_setting/event";
|
||||
|
||||
export default function AdminLayout({
|
||||
children,
|
||||
@@ -428,6 +429,18 @@ function DrawerNotifikasi({
|
||||
},
|
||||
});
|
||||
|
||||
e?.kategoriApp === "EVENT" &&
|
||||
adminNotifikasi_findRouterEvent({
|
||||
data: e,
|
||||
router: router,
|
||||
onChangeNavbar(val) {
|
||||
onChangeNavbar(val);
|
||||
},
|
||||
onToggleNavbar(val) {
|
||||
onToggleNavbar(val);
|
||||
},
|
||||
});
|
||||
|
||||
const updateIsRead = await adminNotifikasi_funUpdateIsReadById({
|
||||
notifId: e?.id,
|
||||
});
|
||||
|
||||
@@ -9,24 +9,20 @@ import { RouterAdminVote } from "@/app/lib/router_admin/router_admin_vote";
|
||||
import { RouterAdminUserAccess } from "@/app/lib/router_admin/router_admn_user_acces";
|
||||
import { RouterAdminAppInformation } from "@/app/lib/router_admin/router_app_information";
|
||||
import {
|
||||
RouterAdminDashboard,
|
||||
RouterAdminDonasi_OLD,
|
||||
RouterAdminInvestasi_OLD,
|
||||
RouterAdminDashboard
|
||||
} from "@/app/lib/router_hipmi/router_admin";
|
||||
import {
|
||||
IconAffiliate,
|
||||
IconBriefcase,
|
||||
IconDashboard,
|
||||
IconDeviceMobile,
|
||||
IconMessages,
|
||||
IconUserCog,
|
||||
} from "@tabler/icons-react";
|
||||
import {
|
||||
IconHeartHandshake,
|
||||
IconHome,
|
||||
IconMessages,
|
||||
IconMoneybag,
|
||||
IconPackageImport,
|
||||
IconPresentation,
|
||||
IconUserCog,
|
||||
} from "@tabler/icons-react";
|
||||
|
||||
export const listAdminPage = [
|
||||
|
||||
28
src/app_modules/admin/notifikasi/route_setting/event.ts
Normal file
28
src/app_modules/admin/notifikasi/route_setting/event.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { RouterAdminEvent } from "@/app/lib/router_admin/router_admin_event";
|
||||
import { RouterAdminVote } from "@/app/lib/router_admin/router_admin_vote";
|
||||
import { MODEL_NOTIFIKASI } from "@/app_modules/notifikasi/model/interface";
|
||||
import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
|
||||
|
||||
export async function adminNotifikasi_findRouterEvent({
|
||||
data,
|
||||
router,
|
||||
onChangeNavbar,
|
||||
onToggleNavbar,
|
||||
}: {
|
||||
data: MODEL_NOTIFIKASI;
|
||||
router: AppRouterInstance;
|
||||
onChangeNavbar: (val: any) => void;
|
||||
onToggleNavbar: (val: any) => void;
|
||||
}) {
|
||||
const path = RouterAdminEvent.table_review
|
||||
|
||||
if (data.status === "Review") {
|
||||
router.push(path, { scroll: false });
|
||||
onChangeNavbar({
|
||||
id: 4,
|
||||
childId: 43,
|
||||
});
|
||||
}
|
||||
|
||||
onToggleNavbar(true);
|
||||
}
|
||||
Reference in New Issue
Block a user