Changed metric group name on dashboard

This commit is contained in:
Ryan Freeman 2023-04-12 21:25:53 +01:00
parent c9fb294fc7
commit 97e682d2c9

View File

@ -24,7 +24,6 @@ export async function getDashboardData(context: GetServerSidePropsContext) {
const totalStars = await getTotalStars(totalRepos) const totalStars = await getTotalStars(totalRepos)
const totalForks = await getTotalForks(totalRepos) const totalForks = await getTotalForks(totalRepos)
const totalArticles = (await getAllArticles()).length const totalArticles = (await getAllArticles()).length
const totalViews = views
const topArtist = await getTopArtist() const topArtist = await getTopArtist()
const {genre} = await getTopGenre() const {genre} = await getTopGenre()
const {hoursListened, minutesListened, streams} = await getStats() const {hoursListened, minutesListened, streams} = await getStats()
@ -93,13 +92,13 @@ export async function getDashboardData(context: GetServerSidePropsContext) {
{ {
title: "Total articles", title: "Total articles",
value: +totalArticles, value: +totalArticles,
group: "Website", group: "Blog",
href: "/writing" href: "/writing"
}, },
{ {
title: "Total views", title: "Total article views",
value: +totalViews, value: +views,
group: "Website", group: "Blog",
href: "/" href: "/"
} }
] ]