diff --git a/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java b/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java index d867d68..f3884a6 100644 --- a/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/auth/FeedHandlers.java @@ -424,7 +424,7 @@ public class FeedHandlers { CriteriaBuilder cb = s.getCriteriaBuilder(); var query = cb.createQuery(Channel.class); var root = query.from(Channel.class); - var subquery = query.subquery(User.class); + var subquery = query.subquery(String.class); var subroot = subquery.from(User.class); subquery.select(subroot.get("subscribed_ids")) diff --git a/testing/api-test.sh b/testing/api-test.sh index 0f50abc..8e2b578 100755 --- a/testing/api-test.sh +++ b/testing/api-test.sh @@ -104,6 +104,9 @@ curl "${CURLOPTS[@]}" $HOST/import -X POST -H "Content-Type: application/json" - # Wait 2s to allow the subscription request to be processed sleep 2 +# Check Subscriptions +curl "${CURLOPTS[@]}" $HOST/subscriptions -H "Authorization: $AUTH_TOKEN" || exit 1 + # Check Feed curl "${CURLOPTS[@]}" $HOST/feed -G --data-urlencode "authToken=$AUTH_TOKEN" || exit 1