fix(front): correct types and schema endpoints in about page
This commit is contained in:
parent
dcff86bd55
commit
30747bab66
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue