make sure collections list is unique

(cherry picked from commit d27331a0b3)
This commit is contained in:
nwoodward
2024-04-11 11:01:21 -05:00
committed by github-actions[bot]
parent d6f6444f58
commit 1da7c6b933

View File

@@ -159,7 +159,7 @@ public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> imple
@Override
public List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException {
return list(createQuery(context, "SELECT c FROM Collection c JOIN Subscription s ON c.id = " +
return list(createQuery(context, "SELECT DISTINCT c FROM Collection c JOIN Subscription s ON c.id = " +
"s.dSpaceObject"));
}