Commit 2cf53d1e authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Remove unnecessary conversion

parent 17039ada
......@@ -104,7 +104,7 @@ class InstitutionSearchDocBuilder(path: String, appSettings: Properties) {
numberOfRecordSets = recordSetIds.count(),
numberOfDocuments = recordSetIds
.map { value -> elasticSearchWrapper.countNumberOfDocuments(value) }
.sum().toInt(),
.sum(),
teaserColor = institution[KEYS.teaserColor].let {
if (it == null) {
log.error("No teaser colour found for institution $id.")
......
Markdown is supported
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