Merge pull request #447 from TeamPiped/query-type

Fix query type error.
This commit is contained in:
Kavin 2022-11-17 16:55:16 +00:00 committed by GitHub
commit 2c995856d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ public class DatabaseHelper {
public static boolean doesVideoExist(SharedSessionContract s, String id) {
CriteriaBuilder cb = s.getCriteriaBuilder();
CriteriaQuery<Video> cr = cb.createQuery(Video.class);
CriteriaQuery<String> cr = cb.createQuery(String.class);
Root<Video> root = cr.from(Video.class);
cr.select(root.get("id")).where(cb.equal(root.get("id"), id));