Merge pull request #313 from TeamPiped/revert-308-revert-distinct

Revert "Revert distinct from criteria."
This commit is contained in:
Kavin 2022-07-17 19:45:23 +05:30 committed by GitHub
commit 14f8c55782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -864,7 +864,6 @@ public class ResponseHelper {
// Get all videos from subscribed channels, with channel info
CriteriaQuery<Video> criteria = cb.createQuery(Video.class);
criteria.distinct(true);
var root = criteria.from(Video.class);
var userRoot = criteria.from(User.class);
root.fetch("channel", JoinType.INNER);
@ -916,7 +915,6 @@ public class ResponseHelper {
// Get all videos from subscribed channels, with channel info
CriteriaQuery<Video> criteria = cb.createQuery(Video.class);
criteria.distinct(true);
var root = criteria.from(Video.class);
var userRoot = criteria.from(User.class);
root.fetch("channel", JoinType.INNER);