1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Fix aot build

This commit is contained in:
Chocobozzz 2018-01-09 17:22:26 +01:00
parent 234b535dac
commit ca309a9f64
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 18 additions and 22 deletions

View file

@ -190,14 +190,21 @@ export class ActorFollowModel extends Model<ActorFollowModel> {
}
static listAcceptedFollowerSharedInboxUrls (actorIds: number[], t: Sequelize.Transaction) {
return ActorFollowModel.createListAcceptedFollowForApiQuery('followers', actorIds, t, undefined, undefined, 'sharedInboxUrl')
return ActorFollowModel.createListAcceptedFollowForApiQuery(
'DISTINCT(followers)',
actorIds,
t,
undefined,
undefined,
'sharedInboxUrl'
)
}
static listAcceptedFollowingUrlsForApi (actorIds: number[], t: Sequelize.Transaction, start?: number, count?: number) {
return ActorFollowModel.createListAcceptedFollowForApiQuery('following', actorIds, t, start, count)
}
private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following',
private static async createListAcceptedFollowForApiQuery (type: 'followers' | 'following' | 'DISTINCT(followers)',
actorIds: number[],
t: Sequelize.Transaction,
start?: number,