mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 16:30:29 +05:30
Fix query type error.
This commit is contained in:
parent
12ac82393e
commit
b065ea8668
@ -98,7 +98,7 @@ public class DatabaseHelper {
|
|||||||
|
|
||||||
public static boolean doesVideoExist(SharedSessionContract s, String id) {
|
public static boolean doesVideoExist(SharedSessionContract s, String id) {
|
||||||
CriteriaBuilder cb = s.getCriteriaBuilder();
|
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);
|
Root<Video> root = cr.from(Video.class);
|
||||||
cr.select(root.get("id")).where(cb.equal(root.get("id"), id));
|
cr.select(root.get("id")).where(cb.equal(root.get("id"), id));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user