fix?
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 55s

This commit is contained in:
Lee 2024-04-16 23:03:20 +01:00
parent 7732ae6e25
commit e470757ea0

@ -49,8 +49,9 @@ export async function generateMetadata(): Promise<Metadata> {
let description = "The current status of Mojang Services\n\n"; let description = "The current status of Mojang Services\n\n";
description += Object.entries(endpoints) description += Object.entries(endpoints)
.map(([url, status]) => { .map(([url, status]) => {
const formattedStatus = formatStatus(status).padStart(maxStatusLength, " "); // Pad the status to ensure uniform width const formattedStatus = formatStatus(status);
return `${url}: ${formattedStatus}`; const padding = " ".repeat(maxStatusLength - formattedStatus.length); // Create padding based on the difference in length
return `${url}: ${padding}${formattedStatus}`;
}) })
.join("\n"); .join("\n");