fix: read lists imported from cbl are not added to search index

closes #868
This commit is contained in:
Gauthier Roebroeck 2022-04-25 11:20:41 +08:00
parent 56b097d829
commit 63e3d8a6ae

View file

@ -131,8 +131,7 @@ class ReadListLifecycle(
val result = readListMatcher.matchReadListRequest(request)
return when {
result.readList != null -> {
readListRepository.insert(result.readList)
result.copy(readList = readListRepository.findByIdOrNull(result.readList.id)!!)
result.copy(readList = addReadList(result.readList))
}
else -> result
}