mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Revert "Revert distinct from criteria. (#308)"
This reverts commit bcb0d32daa
.
This commit is contained in:
parent
c7a0535039
commit
f37682cf4e
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