diff --git a/components/landing/HeaderNews.tsx b/components/landing/HeaderNews.tsx index e2fb6b0..1eff6fa 100644 --- a/components/landing/HeaderNews.tsx +++ b/components/landing/HeaderNews.tsx @@ -71,7 +71,7 @@ export default function HeaderNews() { limit: "10", sortBy: "view_count", sort: "desc", - category: "586", + category: "1906", isPublish: true, }; const response = await getListArticle(req); diff --git a/components/landing/MedolUpdate.tsx b/components/landing/MedolUpdate.tsx index 1450dff..3479b98 100644 --- a/components/landing/MedolUpdate.tsx +++ b/components/landing/MedolUpdate.tsx @@ -170,7 +170,7 @@ export default function MedolUpdate() { > {mediahubUpdate?.map((newsItem: any) => ( @@ -185,7 +185,8 @@ export default function MedolUpdate() { height={480} alt="tes" className="object-cover !h-[20vh]" - src={newsItem.thumbnailLink} + // src={newsItem.thumbnailLink} + src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`} />