Skip to content

Commit

Permalink
Align dto with isarbeidsuforhet (#196)
Browse files Browse the repository at this point in the history
* Align dto with isarbeidsuforhet

* Fix test
  • Loading branch information
andersrognstad authored Mar 11, 2024
1 parent b3e912b commit 049e1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import java.util.*
data class ExpiredForhandsvarsel(
val uuid: UUID,
val createdAt: OffsetDateTime,
val personident: PersonIdent,
val personIdent: PersonIdent,
val svarfrist: LocalDate,
) {
fun toPersonoppgave(): PersonOppgave = PersonOppgave(
personIdent = personident,
personIdent = personIdent,
referanseUuid = uuid,
type = PersonOppgaveType.ARBEIDSUFORHET_VURDER_AVSLAG,
publish = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fun generateExpiredForhandsvarsel(
personident: PersonIdent = PersonIdent(UserConstants.ARBEIDSTAKER_FNR.value),
) = ExpiredForhandsvarsel(
uuid = UUID.randomUUID(),
personident = personident,
personIdent = personident,
createdAt = OffsetDateTime.now(),
svarfrist = LocalDate.now().plusWeeks(3),
)

0 comments on commit 049e1bc

Please sign in to comment.