diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/search/SearchIndexLifecycle.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/search/SearchIndexLifecycle.kt index 68d2f92a..0b377e71 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/search/SearchIndexLifecycle.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/search/SearchIndexLifecycle.kt @@ -37,7 +37,7 @@ class SearchIndexLifecycle( private val luceneHelper: LuceneHelper, ) { - fun rebuildIndex(entities: Set?) { + fun rebuildIndex(entities: Set? = null) { val targetEntities = entities ?: LuceneEntity.values().toSet() logger.info { "Rebuild index for: ${targetEntities.map { it.type }}" }