Commit 40aed859 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix isPublished decoder

parent 5325ced0
Pipeline #20518 passed with stages
in 5 minutes and 30 seconds
......@@ -58,6 +58,7 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
recordSetId = id,
isPublished = recordSet[KEYS.isPublished].let {
when (it) {
is Boolean -> it
is String -> it.toBoolean()
else -> {
log.error("Found no isPublished property on record set $key. Set to false.")
Supports Markdown
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