mirror of
				https://github.com/TeamPiped/Piped-Backend.git
				synced 2024-08-14 23:51:41 +00:00 
			
		
		
		
	Merge pull request #581 from TeamPiped/fix-subquery-type
Fix a subquery's selection type
This commit is contained in:
		
						commit
						0b9c96e910
					
				
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue