fix: forum admin
perubahan pada metode API
This commit is contained in:
@@ -1,23 +1,9 @@
|
||||
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
||||
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let postingId = params.id;
|
||||
|
||||
// const listKomentar = await adminForum_getListKomentarById({
|
||||
// postingId: postingId,
|
||||
// page: 1,
|
||||
// });
|
||||
const dataPosting = await adminForum_getOnePostingById(postingId);
|
||||
// const countKomentar = await adminForum_countKomentarByPostingId({
|
||||
// postingId: postingId,
|
||||
// });
|
||||
|
||||
export default async function Page() {
|
||||
return (
|
||||
<>
|
||||
<AdminForum_LihatSemuaKomentar
|
||||
dataPosting={dataPosting as any}
|
||||
/>
|
||||
<AdminForum_LihatSemuaKomentar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user