mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix a subquery's selection type
This commit is contained in:
parent
7dc0afa966
commit
cb6bfb30b1
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ public class Main {
|
|||
var pvQuery = cb.createCriteriaDelete(PlaylistVideo.class);
|
||||
var pvRoot = pvQuery.from(PlaylistVideo.class);
|
||||
|
||||
var subQuery = pvQuery.subquery(me.kavin.piped.utils.obj.db.Playlist.class);
|
||||
var subQuery = pvQuery.subquery(String.class);
|
||||
var subRoot = subQuery.from(me.kavin.piped.utils.obj.db.Playlist.class);
|
||||
|
||||
subQuery.select(subRoot.join("videos").get("id")).distinct(true);
|
||||
|
|
Loading…
Reference in a new issue