Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix ownership changes count

Chocobozzz056a94a44dac
diff --git a/server/core/models/video/video-change-ownership.ts b/server/core/models/video/video-change-ownership.ts
index 7af19d8fc2..cd789b62cd 100644
--- a/server/core/models/video/video-change-ownership.ts
+++ b/server/core/models/video/video-change-ownership.ts
@@ -113,7 +113,7 @@ export class VideoChangeOwnershipModel extends SequelizeModel<VideoChangeOwnersh
}
return Promise.all([
- VideoChangeOwnershipModel.scope(ScopeNames.WITH_ACCOUNTS).count(query),
+ VideoChangeOwnershipModel.count(query),
VideoChangeOwnershipModel.scope([ ScopeNames.WITH_ACCOUNTS, ScopeNames.WITH_VIDEO ]).findAll<MVideoChangeOwnershipFull>(query)
]).then(([ count, rows ]) => ({ total: count, data: rows }))
}