Update stats.ts

This commit is contained in:
syuilo 2018-10-21 18:43:45 +09:00 committed by GitHub
parent 72754ede4e
commit 77b15a3535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -755,9 +755,9 @@ class FollowingStats extends Stats<FollowingLog> {
remoteFollowersCount
] = init ? await Promise.all([
Following.count({ followerId: group, '_followee.host': null }),
Following.count({ followeeId: group, '_user.host': null }),
Following.count({ followeeId: group, '_follower.host': null }),
Following.count({ followerId: group, '_followee.host': { $ne: null } }),
Following.count({ followeeId: group, '_user.host': { $ne: null } })
Following.count({ followeeId: group, '_follower.host': { $ne: null } })
]) : [
latestLog ? latestLog.local.followings.total : 0,
latestLog ? latestLog.local.followers.total : 0,