feat(server): add immich.users.total metric (#21780)

* Add immich.users.total metric

* Fix tests & one lint error

* Lint

* Fix SQL Schema checks

* Fix nit

* Use workers argument in OnEvent hook and remove condition from method body
This commit is contained in:
Tushar Harsora 2025-10-08 22:54:11 +05:30 committed by GitHub
parent cf60f4cdcd
commit b2d00405f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 41 additions and 4 deletions

View file

@ -363,6 +363,14 @@ group by
order by
"user"."createdAt" asc
-- UserRepository.getCount
select
count(*) as "count"
from
"user"
where
"user"."deletedAt" is null
-- UserRepository.updateUsage
update "user"
set