From 1ed403cb411051dde59ed3df4e19e1998174d28e Mon Sep 17 00:00:00 2001 From: Tanja Krasnomovets Date: Tue, 17 Dec 2024 09:12:52 +0100 Subject: [PATCH] job every 2 min --- nais/job-trigger-dev.yaml | 2 +- src/main/kotlin/no/nav/syfo/db/UtsendtVarselDAO.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nais/job-trigger-dev.yaml b/nais/job-trigger-dev.yaml index 145af72d1..094a41c65 100644 --- a/nais/job-trigger-dev.yaml +++ b/nais/job-trigger-dev.yaml @@ -11,7 +11,7 @@ spec: outbound: rules: - application: esyfovarsel - schedule: "*/5 * * * *" + schedule: "*/2 * * * *" filesFrom: - secret: esyfovarsel-serviceuser env: diff --git a/src/main/kotlin/no/nav/syfo/db/UtsendtVarselDAO.kt b/src/main/kotlin/no/nav/syfo/db/UtsendtVarselDAO.kt index ff73d3542..71921d833 100644 --- a/src/main/kotlin/no/nav/syfo/db/UtsendtVarselDAO.kt +++ b/src/main/kotlin/no/nav/syfo/db/UtsendtVarselDAO.kt @@ -62,7 +62,7 @@ fun DatabaseInterface.fetchAlleUferdigstilteAktivitetspliktVarsler( FROM UTSENDT_VARSEL WHERE type = 'SM_AKTIVITETSPLIKT' AND kanal = 'BRUKERNOTIFIKASJON' - and is_forced_letter = false + AND is_forced_letter = false AND ferdigstilt_tidspunkt is null """.trimIndent()