mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #313 from TeamPiped/revert-308-revert-distinct
Revert "Revert distinct from criteria."
This commit is contained in:
commit
14f8c55782
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue