diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/InitialUserController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/InitialUserController.kt index 9856e29b0..e34e8f992 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/InitialUserController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/InitialUserController.kt @@ -9,12 +9,12 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Profile import org.springframework.context.event.EventListener -import org.springframework.stereotype.Controller +import org.springframework.stereotype.Component private val logger = KotlinLogging.logger {} @Profile("!(test | claim)") -@Controller +@Component class InitialUserController( private val userLifecycle: KomgaUserLifecycle, private val initialUsers: List diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicDatabaseBackupController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicDatabaseBackupController.kt index 151bfde99..39cdc9e2e 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicDatabaseBackupController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicDatabaseBackupController.kt @@ -7,12 +7,12 @@ import org.springframework.boot.context.event.ApplicationReadyEvent import org.springframework.context.annotation.Profile import org.springframework.context.event.EventListener import org.springframework.scheduling.annotation.Scheduled -import org.springframework.stereotype.Controller +import org.springframework.stereotype.Component private val logger = KotlinLogging.logger {} @Profile("!test") -@Controller +@Component class PeriodicDatabaseBackupController( private val taskReceiver: TaskReceiver, private val komgaProperties: KomgaProperties diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicScannerController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicScannerController.kt index 55f4b061c..9471db669 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicScannerController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/scheduler/PeriodicScannerController.kt @@ -6,12 +6,12 @@ import org.springframework.boot.context.event.ApplicationReadyEvent import org.springframework.context.annotation.Profile import org.springframework.context.event.EventListener import org.springframework.scheduling.annotation.Scheduled -import org.springframework.stereotype.Controller +import org.springframework.stereotype.Component private val logger = KotlinLogging.logger {} @Profile("!test") -@Controller +@Component class PeriodicScannerController( private val taskReceiver: TaskReceiver ) {