fix(front): correct types and schema endpoints in about page

This commit is contained in:
ArneBo 2025-03-24 13:32:08 +01:00
parent dcff86bd55
commit 30747bab66
1 changed files with 5 additions and 5 deletions

View File

@ -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
}