diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-20 10:23:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-20 10:23:19 +0200 |
commit | 714e33a7428b71ef98129ce85a4bd64140bcd912 (patch) | |
tree | 59bd3e4b359bcd04f4ad97c404246688ccd84e68 /server/models/user/user.ts | |
parent | aa2ce188d102ab38452df316d06286040b5d9075 (diff) | |
parent | d47b18079bfe4aed472ddcc0a89302ba85f03a48 (diff) | |
download | PeerTube-714e33a7428b71ef98129ce85a4bd64140bcd912.tar.gz PeerTube-714e33a7428b71ef98129ce85a4bd64140bcd912.tar.zst PeerTube-714e33a7428b71ef98129ce85a4bd64140bcd912.zip |
Merge branch 'release/4.2.0' into develop
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 20c2222a7..a25551ecd 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) |