add total amount of users to stats

This commit is contained in:
2026-05-27 19:33:38 +02:00
parent 9f6215706d
commit 603b3f37b9
6 changed files with 11 additions and 0 deletions

View File

@@ -78,6 +78,11 @@ export default (router, tpl) => {
where items.active = true
`)[0].total;
const totalUsers = +(await db`
select count(*) as total
from "user"
`)[0].total;
const hoster = await db`
with t as (
select
@@ -135,6 +140,7 @@ export default (router, tpl) => {
xdtop,
totalComments,
totalFavs,
totalUsers,
enable_nsfl: config.enable_nsfl,
diskSize: cachedDiskSize,
tmp: null,