From e79cb0f4f008ad80c75e969220b5e94a6d53064a Mon Sep 17 00:00:00 2001 From: Joakim Taule Kartveit Date: Thu, 23 Jan 2025 10:15:33 +0100 Subject: [PATCH] chore: added in ServerReady --- src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt b/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt index 3ad350d..b9b6ec0 100644 --- a/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt +++ b/src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt @@ -5,7 +5,7 @@ import no.nav.syfo.ApplicationState fun Application.configureLifecycleHooks(applicationState: ApplicationState) { - monitor.subscribe(ApplicationStarted) { applicationState.ready = true } + monitor.subscribe(ApplicationStarted) { applicationState.alive = true } monitor.subscribe(ServerReady) { applicationState.ready = true } monitor.subscribe(ApplicationStopped) { applicationState.ready = false