Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Aktiverer ArbeidssokerperiodeScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
maccyber committed Nov 8, 2023
1 parent db204fa commit 9ef19e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ArbeidssokerperiodeScheduler(
private val arbeidssokerperiodeService: ArbeidssokerperiodeService,
private val arbeidssokerperiodeProducer: ArbeidssokerperiodeProducer,
) {
// @Scheduled(cron = HVERT_TIENDE_SEKUND)
@Scheduled(cron = HVERT_TIENDE_SEKUND)
fun start() {
if (!leaderElectionClient.isLeader) {
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ArbeidssokerperiodeRepositoryImpl(private val db: NamedParameterJdbcTempla

override fun settArbeidssokerperioderSomOverfort(listeMedIder: List<Int>) {
val sql = "UPDATE $ARBEIDSSOKERPERIODE_TABELL SET overfort_kafka = TRUE WHERE id IN (:listeMedIder)"
val params = mapOf("ListeMedIder" to listeMedIder)
val params = mapOf("listeMedIder" to listeMedIder)
db.update(sql, params)
}

Expand Down

0 comments on commit 9ef19e7

Please sign in to comment.