Polishing.

This commit is contained in:
Greg Turnquist
2019-03-12 13:49:37 -05:00
parent 6c4baa00a6
commit 8cd439788f

View File

@@ -129,7 +129,8 @@ public class MongoOperationsSessionRepository
return Optional.ofNullable(this.mongoSessionConverter.getQueryForIndex(indexName, indexValue))
.map(query -> this.mongoOperations.find(query, Document.class, this.collectionName))
.orElse(Collections.emptyList()).stream()
.orElse(Collections.emptyList()) //
.stream() //
.map(dbSession -> convertToSession(this.mongoSessionConverter, dbSession))
.collect(Collectors.toMap(MongoSession::getId, mapSession -> mapSession));
}