mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Merge pull request #570 from TeamPiped/subscriptions-fix
Subscriptions fix
This commit is contained in:
commit
54ae19d142
2 changed files with 4 additions and 1 deletions
|
@ -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"))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue