diff --git a/src/app/(pages)/mojang/page.tsx b/src/app/(pages)/mojang/page.tsx index 2216138..4e20337 100644 --- a/src/app/(pages)/mojang/page.tsx +++ b/src/app/(pages)/mojang/page.tsx @@ -4,7 +4,7 @@ import { generateEmbed } from "@/common/embed"; import { capitalizeFirstLetter } from "@/common/string-utils"; import { formatTime } from "@/common/time-utils"; import { cn } from "@/common/utils"; -import { CachedEndpointStatus, getMojangEndpointStatus } from "mcutils-library"; +import { getMojangEndpointStatus } from "mcutils-library"; import { Metadata } from "next"; import Link from "next/link"; @@ -42,13 +42,8 @@ function formatStatus(status: any): string { return capitalizeFirstLetter(status.toLowerCase()); } -async function getData(): Promise { - const status = await getMojangEndpointStatus(); - return status; -} - export async function generateMetadata(): Promise { - const { endpoints } = await getData(); + const { endpoints } = await getMojangEndpointStatus(); let description = Object.entries(endpoints) .map(([url, status]) => { @@ -64,7 +59,7 @@ export async function generateMetadata(): Promise { } export default async function Page(): Promise { - const { endpoints } = await getData(); + const { endpoints } = await getMojangEndpointStatus(); const endpointsSize = Object.entries(endpoints).length; return (