Skip to content

Commit

Permalink
bumper r&r og tbd-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Nov 12, 2024
1 parent c851610 commit e6687f4
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 34 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val junitJupiterVersion = "5.11.3"
val postgresqlVersion = "42.7.2"
val tbdLibsVersion = "2024.11.07-09.04-76a1afb0"
val rapidsAndRiversVersion = "2024110709231730967802.bf0cda480345"
val tbdLibsVersion = "2024.11.12-11.09-16cf2599"
val rapidsAndRiversVersion = "2024111211071731406062.648687519469"
val mockkVersion = "1.13.13"

plugins {
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/AktivitetRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand Down Expand Up @@ -35,7 +37,7 @@ class AktivitetRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
try {
//log.info("Inserter aktiviteter for vedtaksperiodeId: ${json["vedtaksperiodeId"].asText()}")
packet["aktiviteter"]
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/AnnulleringRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package no.nav.helse
import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import no.nav.helse.Annullering.Companion.insertAnnullering
import no.nav.helse.Annullering.Companion.parseAnnullering
import no.nav.helse.Util.asUuid
Expand All @@ -27,7 +29,7 @@ class AnnulleringRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {

val jsonNode = packet.jsonNode()
val annullering = jsonNode.parseAnnullering()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/FunksjonellFeilOgVarselRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import net.logstash.logback.argument.StructuredArguments.keyValue
Expand Down Expand Up @@ -33,7 +35,7 @@ class FunksjonellFeilOgVarselRiver(
}
}.register(this)
}
override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
sikkerlogg.info("Leser inn {}", keyValue("hendelse", packet.toJson()))
val opprettet = packet["@opprettet"].asLocalDateTime()
packet["aktiviteter"]
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/no/nav/helse/GodkjenningLøsningRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import com.fasterxml.jackson.databind.JsonNode
import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers.be
import com.github.navikt.tbd_libs.rapids_and_rivers.isMissingOrNull
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import com.github.navikt.tbd_libs.result_object.getOrThrow
import com.github.navikt.tbd_libs.retry.retryBlocking
import com.github.navikt.tbd_libs.speed.SpeedClient
import io.micrometer.core.instrument.Counter
import io.micrometer.core.instrument.MeterRegistry
import net.logstash.logback.argument.StructuredArguments.kv
import java.util.*
import javax.sql.DataSource
Expand Down Expand Up @@ -48,7 +49,7 @@ class GodkjenningLøsningRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
if (godkjenningAlleredeLagret(packet)) return

val ident = packet["fødselsnummer"].asText()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/HendelseIkkeHåndtertRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers.isMissingOrNull
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.Session
import kotliquery.queryOf
import no.nav.helse.Util.withSession
Expand All @@ -29,7 +31,7 @@ class HendelseIkkeHåndtertRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val hendelseId = UUID.fromString(packet["hendelseId"].asText())
val opprettet = packet["@opprettet"].asLocalDateTime()
val årsaker = packet["årsaker"].takeUnless(JsonNode::isMissingOrNull)
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/OppgaveEndretRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers.isMissingOrNull
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.TransactionalSession
import kotliquery.queryOf
import kotliquery.sessionOf
Expand All @@ -31,7 +33,7 @@ class OppgaveEndretRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val oppgaveEndret = OppgaveEndret(
id = packet["oppgaveId"].asLong(),
fødselsnummer = packet["fødselsnummer"].asText(),
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/PersonAvstemtRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDate
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import com.github.navikt.tbd_libs.result_object.getOrThrow
import com.github.navikt.tbd_libs.retry.retryBlocking
import com.github.navikt.tbd_libs.speed.SpeedClient
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import no.nav.helse.Util.asUuid
Expand Down Expand Up @@ -39,7 +41,7 @@ class VedtaksperiodeAvstemt(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val ident = packet["fødselsnummer"].asText()
val callId = packet["@id"].asText()
val identer = retryBlocking { speedClient.hentFødselsnummerOgAktørId(ident, callId).getOrThrow() }
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/RevurderingFerdigstiltRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand All @@ -31,7 +33,7 @@ class RevurderingFerdigstiltRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val revurderingId = UUID.fromString(packet["revurderingId"].asText())
val status = packet["status"].asText()
val opprettet = packet["@opprettet"].asLocalDateTime()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/RevurderingIgangsattRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDate
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand Down Expand Up @@ -40,7 +42,7 @@ class RevurderingIgangsattRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val revurderingId = packet["revurderingId"].let { UUID.fromString(it.asText()) }
val årsak = packet["årsak"].asText()
val opprettet = packet["@opprettet"].asLocalDateTime()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/SendtSøknadRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package no.nav.helse
import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import no.nav.helse.Util.asUuid
Expand Down Expand Up @@ -31,7 +33,7 @@ class SendtSøknadRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val dokumentId = packet["id"].asUuid()
val hendelseId = packet["@id"].asUuid()
val eventName = packet["@event_name"].asText()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package no.nav.helse
import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageProblems
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.postgresql.util.PSQLException
Expand All @@ -24,7 +26,7 @@ class SkatteinntekterLagtTilGrunnRiver(rapidsConnection: RapidsConnection, priva
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
sikkerlogg.info("Leste melding: ${packet.toJson()}")
val vedtaksperiodeId = packet["vedtaksperiodeId"].asText().let { UUID.fromString(it) }
val behandlingId = packet["behandlingId"].asText().let { UUID.fromString(it) }
Expand Down Expand Up @@ -53,7 +55,7 @@ class SkatteinntekterLagtTilGrunnRiver(rapidsConnection: RapidsConnection, priva
}
}

override fun onError(problems: MessageProblems, context: MessageContext) {
override fun onError(problems: MessageProblems, context: MessageContext, metadata: MessageMetadata) {
sikkerlogg.error(problems.toExtendedReport())
}
}
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/SøknadHåndtertRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand All @@ -26,7 +28,7 @@ class SøknadHåndtertRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val søknadHendelseId = UUID.fromString(packet["søknadId"].asText())
val vedtaksperiodeId = UUID.fromString(packet["vedtaksperiodeId"].asText())
val opprettet = packet["@opprettet"].asLocalDateTime()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.Timer
import kotliquery.queryOf
import kotliquery.sessionOf
import kotliquery.using
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.time.format.DateTimeParseException
Expand Down Expand Up @@ -39,7 +40,7 @@ class TidFraGodkjenningTilUtbetalingRiver(

}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val json = objectMapper.readTree(packet.toJson())
val vedtaksperiodeId = UUID.fromString(json["vedtaksperiodeId"].asText())

Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/TilstandendringRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand Down Expand Up @@ -34,7 +36,7 @@ class TilstandendringRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val vedtaksperiodeId = UUID.fromString(packet["vedtaksperiodeId"].asText())
insertTilstandsendring(
id = UUID.fromString(packet["@id"].asText()),
Expand Down
6 changes: 4 additions & 2 deletions src/main/kotlin/no/nav/helse/UtkastTilVedtakRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageProblems
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.queryOf
import kotliquery.sessionOf
import org.intellij.lang.annotations.Language
Expand All @@ -28,7 +30,7 @@ class UtkastTilVedtakRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val vedtaksperiodeId = UUID.fromString(packet["vedtaksperiodeId"].asText())
val behandlingId = UUID.fromString(packet["behandlingId"].asText())
val opprettet = packet["@opprettet"].asLocalDateTime()
Expand All @@ -38,7 +40,7 @@ class UtkastTilVedtakRiver(
logg.info("Lagret utkast_til_vedtak for vedtaksperiodeId=$vedtaksperiodeId")
}

override fun onError(problems: MessageProblems, context: MessageContext) {
override fun onError(problems: MessageProblems, context: MessageContext, metadata: MessageMetadata) {
sikkerlogg.error("Klarte ikke å lese utkast_til_vedtak event! ${problems.toExtendedReport()}")
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/VarselEndretRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.Session
import kotliquery.queryOf
import kotliquery.sessionOf
Expand Down Expand Up @@ -35,7 +37,7 @@ class VarselEndretRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val vedtaksperiodeId = UUID.fromString(packet["vedtaksperiode_id"].asText())
val tittel = packet["varseltittel"].asText()
val meldingOpprettet = packet["@opprettet"].asLocalDateTime()
Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/no/nav/helse/VedtaksperiodeBehandletRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.github.navikt.tbd_libs.rapids_and_rivers.JsonMessage
import com.github.navikt.tbd_libs.rapids_and_rivers.River
import com.github.navikt.tbd_libs.rapids_and_rivers.asLocalDateTime
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageContext
import com.github.navikt.tbd_libs.rapids_and_rivers_api.MessageMetadata
import com.github.navikt.tbd_libs.rapids_and_rivers_api.RapidsConnection
import io.micrometer.core.instrument.MeterRegistry
import kotliquery.Session
import kotliquery.queryOf
import kotliquery.sessionOf
Expand All @@ -31,7 +33,7 @@ class VedtaksperiodeBehandletRiver(
}.register(this)
}

override fun onPacket(packet: JsonMessage, context: MessageContext) {
override fun onPacket(packet: JsonMessage, context: MessageContext, metadata: MessageMetadata, meterRegistry: MeterRegistry) {
val json = objectMapper.readTree(packet.toJson())
val behovId = UUID.fromString(json["@behovId"].asText())
val vedtaksperiodeId = UUID.fromString(json["vedtaksperiodeId"].asText())
Expand Down
Loading

0 comments on commit e6687f4

Please sign in to comment.