mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
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:
parent
cf60f4cdcd
commit
b2d00405f1
9 changed files with 41 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue