format online player count in embed
All checks were successful
deploy / deploy (push) Successful in 53s

This commit is contained in:
Lee 2023-10-27 16:39:13 +01:00
parent 1a0d9afb82
commit 2ce413ad3f

View File

@ -3,6 +3,7 @@ import Card from "@/components/Card";
import Container from "@/components/Container";
import { ScoresaberPlayerCountHistory } from "@/schemas/fascinated/scoresaberPlayerCountHistory";
import { ssrSettings } from "@/ssrSettings";
import { formatNumber } from "@/utils/number";
import { Metadata } from "next";
async function getData() {
@ -33,7 +34,9 @@ export async function generateMetadata(): Promise<Metadata> {
description:
description +
`
Players currently online: ${data.history[data.history.length - 1].value}`,
Players currently online: ${formatNumber(
data.history[data.history.length - 1].value,
)}`,
},
};
}