From 30747bab666134abab86122bb6c716f1097b0bef Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 24 Mar 2025 13:32:08 +0100 Subject: [PATCH] fix(front): correct types and schema endpoints in about page --- front/src/components/About.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index 7dbfbcacb..cf9984f59 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -37,14 +37,14 @@ const stats = computed(() => { return null } - const info = nodeinfo.value ?? {} as components['schemas']['NodeInfo20'] + const info = nodeinfo.value ?? {} as components['schemas']['NodeInfo21'] const data = { users: info.usage.users.activeMonth || null, - hours: info.metadata.library.music.hours || null, - artists: info.metadata.library.artists.total || null, - albums: info.metadata.library.albums.total || null, - tracks: info.metadata.library.tracks.total || null, + hours: info.metadata.content.local.hoursOfContent || null, + artists: info.metadata.content.local.artists || null, + albums: info.metadata.content.local.releases || null, + tracks: info.metadata.content.local.recordings || null, listenings: info.metadata.usage?.listenings.total || null }