Skip to content

Commit

Permalink
updated query to get collections referenced in the subscribers table
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoodward committed Apr 10, 2024
1 parent 815f2c1 commit c5989c6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public List<Collection> findAuthorizedByGroup(Context context, EPerson ePerson,

@Override
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
return list(createQuery(context, "SELECT DISTINCT col FROM Subscription s join s.collection col"));
return list(createQuery(context, "SELECT c FROM Collection c JOIN Subscription s ON c.id = " +
"s.dSpaceObject"));
}

@Override
Expand Down

0 comments on commit c5989c6

Please sign in to comment.