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:
parent
234b535dac
commit
ca309a9f64
6 changed files with 18 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue