mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #447 from TeamPiped/query-type
Fix query type error.
This commit is contained in:
commit
2c995856d1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue