Skip to content
Snippets Groups Projects
Commit 7e6c385b authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Explicitly disable reduce function for ID retrieval

parent 1137b906
1 merge request!89Foundation for development of version 3.0
......@@ -63,14 +63,16 @@ public class CouchDbContentRepository extends CouchDbCrudRepository<Content> imp
public List<String> findIdsByRoomId(final String roomId) {
return collectQuestionIds(db.queryView(createQuery("by_roomid_group_locked")
.startKey(ComplexKey.of(roomId))
.endKey(ComplexKey.of(roomId, ComplexKey.emptyObject()))));
.endKey(ComplexKey.of(roomId, ComplexKey.emptyObject()))
.reduce(false)));
}
@Override
public List<String> findIdsByRoomIdAndVariant(final String roomId, final String variant) {
return collectQuestionIds(db.queryView(createQuery("by_roomid_group_locked")
.startKey(ComplexKey.of(roomId, variant))
.endKey(ComplexKey.of(roomId, variant, ComplexKey.emptyObject()))));
.endKey(ComplexKey.of(roomId, variant, ComplexKey.emptyObject()))
.reduce(false)));
}
@Override
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment