fix(stats): note count comparing
This commit is contained in:
parent
6eb1e6dc00
commit
b5c8248d33
1 changed files with 2 additions and 2 deletions
|
@ -85,11 +85,11 @@ onMounted(async () => {
|
||||||
onlineUsersCount.value = _onlineUsersCount;
|
onlineUsersCount.value = _onlineUsersCount;
|
||||||
|
|
||||||
misskeyApiGet('charts/users', { limit: 2, span: 'day' }).then(chart => {
|
misskeyApiGet('charts/users', { limit: 2, span: 'day' }).then(chart => {
|
||||||
usersComparedToThePrevDay.value = stats.value?.originalUsersCount ?? 0 - chart.local.total[1];
|
usersComparedToThePrevDay.value = (stats.value ? stats.value.originalUsersCount : 0) - chart.local.total[1];
|
||||||
});
|
});
|
||||||
|
|
||||||
misskeyApiGet('charts/notes', { limit: 2, span: 'day' }).then(chart => {
|
misskeyApiGet('charts/notes', { limit: 2, span: 'day' }).then(chart => {
|
||||||
notesComparedToThePrevDay.value = stats.value?.originalNotesCount ?? 0 - chart.local.total[1];
|
notesComparedToThePrevDay.value = (stats.value ? stats.value.originalNotesCount : 0) - chart.local.total[1];
|
||||||
});
|
});
|
||||||
|
|
||||||
fetching.value = false;
|
fetching.value = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue