File tree 1 file changed +3
-3
lines changed
apps/min-side-varsler/src/main/kotlin/no/nav/paw/arbeidssoekerregisteret/service
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,24 +69,24 @@ class BestillingService(
69
69
}
70
70
71
71
@WithSpan(" prosesserBestillinger" )
72
- fun prosesserBestillinger () = transaction {
72
+ fun prosesserBestillinger () {
73
73
val bestillinger = bestillingRepository.findByStatus(BestillingStatus .BEKREFTET )
74
74
if (bestillinger.isEmpty()) {
75
75
logger.info(" Ingen ventende manuelle varselbestillinger funnet" )
76
76
} else {
77
77
if (! applicationConfig.manuelleVarslerEnabled) {
78
78
logger.warn(" Utsendelse av manuelle varsler er deaktivert" )
79
79
}
80
+ logger.info(" Starter prosessering av {} manuelle varselbestillinger" , bestillinger.size)
80
81
bestillinger
81
82
.map { UpdateBestillingRow (it.bestillingId, BestillingStatus .AKTIV ) }
82
83
.forEach { bestillingRepository.update(it) }
83
- logger.info(" Starter prosessering av {} manuelle varselbestillinger" , bestillinger.size)
84
84
bestillinger.forEach { prosesserBestilling(it) }
85
85
}
86
86
}
87
87
88
88
@WithSpan(" prosesserBestilling" )
89
- private fun prosesserBestilling (bestilling : BestillingRow ) {
89
+ private fun prosesserBestilling (bestilling : BestillingRow ) = transaction {
90
90
val varslinger = bestiltVarselRepository.findByBestillingId(bestilling.bestillingId)
91
91
logger.info(
92
92
" Prosesserer {} varslinger for varselbestilling {}" ,
You can’t perform that action at this time.
0 commit comments