diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-17 16:16:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-17 16:23:13 +0200 |
commit | 5e0dbb3e52797cdea7a9069a9dd605c8f84034dd (patch) | |
tree | d885f6f1e20c201d7493cd0cd7220416f5a71d01 /server/models/user/user.ts | |
parent | 82eb78504ff6b8ed06aa28de48930fe0f21541fe (diff) | |
download | PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.gz PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.tar.zst PeerTube-5e0dbb3e52797cdea7a9069a9dd605c8f84034dd.zip |
Fix users stats
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 326b2e789..68b2bf523 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -819,10 +819,10 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
819 | } | 819 | } |
820 | } | 820 | } |
821 | 821 | ||
822 | return UserModel.count(query) | 822 | return UserModel.unscoped().count(query) |
823 | } | 823 | } |
824 | 824 | ||
825 | const totalUsers = await UserModel.count() | 825 | const totalUsers = await UserModel.unscoped().count() |
826 | const totalDailyActiveUsers = await getActiveUsers(1) | 826 | const totalDailyActiveUsers = await getActiveUsers(1) |
827 | const totalWeeklyActiveUsers = await getActiveUsers(7) | 827 | const totalWeeklyActiveUsers = await getActiveUsers(7) |
828 | const totalMonthlyActiveUsers = await getActiveUsers(30) | 828 | const totalMonthlyActiveUsers = await getActiveUsers(30) |