Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kan sjekke om eps har sak for en gitt brukers sak #1889

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

ramnav990
Copy link
Contributor

@ramnav990 ramnav990 requested a review from a team as a code owner August 23, 2024 11:21
override fun hentEpsSaksIderForBrukersSak(sakId: UUID): List<UUID> {
val sak = sakRepo.hentSak(sakId) ?: throw IllegalArgumentException("Fant ikke sak med id $sakId")
val fnrs = sak.vedtakstidslinje()?.flatMap { it.grunnlagsdata.eps } ?: emptyList()
return fnrs.mapNotNull { sakRepo.hentSakInfo(it)?.sakId }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Burde kanskje kjøre en .unique().

@ramnav990 ramnav990 added this pull request to the merge queue Aug 26, 2024
Merged via the queue into master with commit a419177 Aug 26, 2024
1 check passed
@ramnav990 ramnav990 deleted the sjekker-om-eps-har-sak branch August 26, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants