mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Fix ownership changes count
This commit is contained in:
parent
ca2c6139ef
commit
056a94a44d
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ export class VideoChangeOwnershipModel extends SequelizeModel<VideoChangeOwnersh
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
VideoChangeOwnershipModel.scope(ScopeNames.WITH_ACCOUNTS).count(query),
|
VideoChangeOwnershipModel.count(query),
|
||||||
VideoChangeOwnershipModel.scope([ ScopeNames.WITH_ACCOUNTS, ScopeNames.WITH_VIDEO ]).findAll<MVideoChangeOwnershipFull>(query)
|
VideoChangeOwnershipModel.scope([ ScopeNames.WITH_ACCOUNTS, ScopeNames.WITH_VIDEO ]).findAll<MVideoChangeOwnershipFull>(query)
|
||||||
]).then(([ count, rows ]) => ({ total: count, data: rows }))
|
]).then(([ count, rows ]) => ({ total: count, data: rows }))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue