Skip to content

Commit

Permalink
Inkluderte info om gjeldene id i PdlData
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Oct 28, 2024
1 parent d70ee14 commit d903620
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ class Applikasjon(
{
PdlData(
error = null,
id = it.map { identInfo -> PdlId(identInfo.gruppe.name, identInfo.ident) })
id = it.map { identInfo -> PdlId(
gruppe = identInfo.gruppe.name,
id = identInfo.ident,
gjeldende = !identInfo.historisk
) })
}
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ data class PdlData(

data class PdlId(
val gruppe: String,
val id: String
val id: String,
val gjeldende: Boolean
)

0 comments on commit d903620

Please sign in to comment.