mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix query type error.
This commit is contained in:
parent
12ac82393e
commit
b065ea8668
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue