Add API Dashboard ADMIN Doasi, Job, dan Voting
This commit is contained in:
@@ -2,10 +2,10 @@ import { AdminJob_Main } from "@/app_modules/admin/job";
|
||||
import { AdminJob_funCountStatusByStatusId } from "@/app_modules/admin/job/fun/count/fun_count_job_by_status_id";
|
||||
|
||||
export default async function Page() {
|
||||
const countPublish = await AdminJob_funCountStatusByStatusId("1")
|
||||
const countReview = await AdminJob_funCountStatusByStatusId("2");
|
||||
const countReject = await AdminJob_funCountStatusByStatusId("4");
|
||||
const countArsip = await AdminJob_funCountStatusByStatusId("0")
|
||||
// const countPublish = await AdminJob_funCountStatusByStatusId("1")
|
||||
// const countReview = await AdminJob_funCountStatusByStatusId("2");
|
||||
// const countReject = await AdminJob_funCountStatusByStatusId("4");
|
||||
// const countArsip = await AdminJob_funCountStatusByStatusId("0")
|
||||
|
||||
|
||||
|
||||
@@ -13,10 +13,10 @@ export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminJob_Main
|
||||
countPublish={countPublish as number}
|
||||
countReview={countReview as number}
|
||||
countReject={countReject as number}
|
||||
countArsip={countArsip as number}
|
||||
// countPublish={countPublish as number}
|
||||
// countReview={countReview as number}
|
||||
// countReject={countReject as number}
|
||||
// countArsip={countArsip as number}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -2,18 +2,18 @@ import { AdminVote_Main } from "@/app_modules/admin/vote";
|
||||
import AdminVote_funCountByStatusId from "@/app_modules/admin/vote/fun/count/fun_count_vote_by_status_id";
|
||||
|
||||
export default async function Page() {
|
||||
const countPublish = await AdminVote_funCountByStatusId("1");
|
||||
const countReview = await AdminVote_funCountByStatusId("2");
|
||||
const countDraft = await AdminVote_funCountByStatusId("0");
|
||||
const countReject = await AdminVote_funCountByStatusId("4");
|
||||
// const countPublish = await AdminVote_funCountByStatusId("1");
|
||||
// const countReview = await AdminVote_funCountByStatusId("2");
|
||||
// const countDraft = await AdminVote_funCountByStatusId("0");
|
||||
// const countReject = await AdminVote_funCountByStatusId("4");
|
||||
|
||||
return (
|
||||
<>
|
||||
<AdminVote_Main
|
||||
countPublish={countPublish as number}
|
||||
countReview={countReview as number}
|
||||
countDraft={countDraft as number}
|
||||
countReject={countReject as number}
|
||||
// countPublish={countPublish as number}
|
||||
// countReview={countReview as number}
|
||||
// countDraft={countDraft as number}
|
||||
// countReject={countReject as number}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user