Skip to content

Commit aadd3a2

Browse files
committed
Hente ut antall i tillegg til innhold i oppgavene -- sammenlignkoer
1 parent 2a7c740 commit aadd3a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/no/nav/k9/los/nyoppgavestyring/forvaltning/ForvaltningApis.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ fun Route.forvaltningApis() {
153153
oppgaveRepositoryV1.hent(it)
154154
}
155155

156-
call.respond(KoDiff(v3OppgaverSomManglerIV1.toSet(), v1OppgaverSomManglerIV3.toSet()))
156+
call.respond(KoDiff(v3MenIkkeV1.size, v1MenIkkeV3.size, v3OppgaverSomManglerIV1.toSet(), v1OppgaverSomManglerIV3.toSet()))
157157
} else {
158158
call.respond(HttpStatusCode.Forbidden)
159159
}
@@ -561,6 +561,8 @@ fun lagNøkkelAktør(oppgave: Oppgave, tilBeslutter: Boolean): String {
561561
}
562562

563563
data class KoDiff(
564+
val antallOppgaverSomManglerIV1: Int,
565+
val antallOppgaverSomManglerIV3: Int,
564566
val v3OppgaverSomManglerIV1: Set<Oppgave>,
565567
val v1OppgaverSomManglerIV3: Set<no.nav.k9.los.domene.lager.oppgave.Oppgave>
566568
)

0 commit comments

Comments
 (0)