Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Elasticsearch Services
Search Doc Service
Commits
40aed859
Commit
40aed859
authored
Jan 21, 2021
by
Jonas Waeber
Browse files
Fix isPublished decoder
parent
5325ced0
Pipeline
#20518
passed with stages
in 5 minutes and 30 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/kotlin/RecordSetSearchDocBuilder.kt
View file @
40aed859
...
...
@@ -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."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment