test: fix tests

This commit is contained in:
Gauthier Roebroeck 2021-12-31 10:50:02 +08:00
parent f06d9677b9
commit 4744e76aa6

View file

@ -37,7 +37,7 @@ class SearchIndexLifecycle(
private val luceneHelper: LuceneHelper,
) {
fun rebuildIndex(entities: Set<LuceneEntity>?) {
fun rebuildIndex(entities: Set<LuceneEntity>? = null) {
val targetEntities = entities ?: LuceneEntity.values().toSet()
logger.info { "Rebuild index for: ${targetEntities.map { it.type }}" }