diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-10-21 18:43:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-21 18:43:45 +0900 |
| commit | 77b15a3535508c4e58660acaffad2e5f73eb3b2a (patch) | |
| tree | 4496e63daf237d940ceefa1674625a1e6eb6b7db /src | |
| parent | Fix several file processings (#2968) (diff) | |
| download | sharkey-77b15a3535508c4e58660acaffad2e5f73eb3b2a.tar.gz sharkey-77b15a3535508c4e58660acaffad2e5f73eb3b2a.tar.bz2 sharkey-77b15a3535508c4e58660acaffad2e5f73eb3b2a.zip | |
Update stats.ts
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/stats.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/stats.ts b/src/services/stats.ts index 23ffae9885..12ebe4386f 100644 --- a/src/services/stats.ts +++ b/src/services/stats.ts @@ -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, |