mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-24 23:26:29 +09:00
fix federation chart pubsub
This commit is contained in:
parent
5c5be7f15e
commit
b67f1287c6
@ -35,7 +35,7 @@ export default class FederationChart extends Chart<typeof schema> {
|
|||||||
Followings.createQueryBuilder('following')
|
Followings.createQueryBuilder('following')
|
||||||
.select('COUNT(DISTINCT following.followeeHost)')
|
.select('COUNT(DISTINCT following.followeeHost)')
|
||||||
.where('following.followeeHost IS NOT NULL')
|
.where('following.followeeHost IS NOT NULL')
|
||||||
.andWhere(`following.followerHost IN (${ pubsubSubQuery.getQuery() })`)
|
.andWhere(`following.followeeHost IN (${ pubsubSubQuery.getQuery() })`)
|
||||||
.setParameters(pubsubSubQuery.getParameters())
|
.setParameters(pubsubSubQuery.getParameters())
|
||||||
.getRawOne()
|
.getRawOne()
|
||||||
.then(x => parseInt(x.count, 10)),
|
.then(x => parseInt(x.count, 10)),
|
||||||
|
Loading…
Reference in New Issue
Block a user