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>> { } } - return UserModel.count(query) + return UserModel.unscoped().count(query) } - const totalUsers = await UserModel.count() + const totalUsers = await UserModel.unscoped().count() const totalDailyActiveUsers = await getActiveUsers(1) const totalWeeklyActiveUsers = await getActiveUsers(7) const totalMonthlyActiveUsers = await getActiveUsers(30) diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index 2d60c6a30..1d3178164 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts @@ -683,11 +683,11 @@ export class VideoCommentModel extends Model