Skip to content

Commit

Permalink
Forenkle logikk i route
Browse files Browse the repository at this point in the history
  • Loading branch information
perkynades committed Nov 7, 2024
1 parent db6c609 commit 1dcabfa
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ fun Route.behandlingSakRoutes(
val foedselsnummer = call.receive<FoedselsnummerDTO>()
val saker = behandlingService.hentSakforPerson(foedselsnummer)

if (saker.isNotEmpty()) {
call.respond(HarOMSSakIGjenny(true))
} else {
call.respond(HarOMSSakIGjenny(false))
}
call.respond(HarOMSSakIGjenny(saker.isNotEmpty()))
}

post("/person/sak") {
Expand Down

0 comments on commit 1dcabfa

Please sign in to comment.