From 4744e76aa68d7ed7a2fab2826fe45342ba0f6990 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 31 Dec 2021 10:50:02 +0800 Subject: [PATCH] test: fix tests --- .../gotson/komga/infrastructure/search/SearchIndexLifecycle.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}" }