Skip to content

Commit

Permalink
Change skadetidspunkt type to Instant in YrkesskadeRequest #deploy-te…
Browse files Browse the repository at this point in the history
…st-dolly-backend

Updated skadetidspunkt from LocalDate to Instant for more precise timestamp handling. This change ensures consistency in capturing exact moments of injury occurrences.
  • Loading branch information
krharum committed Oct 9, 2024
1 parent 800a910 commit 80c0e1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.time.Instant;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -56,7 +57,7 @@ public class YrkesskadeRequest {
private Tidstype tidstype;

@Schema(description = "Tidspunkt da skaden oppstod. Denne blir ignorert dersom tidstype er ulik 'tidspunkt'")
private LocalDate skadetidspunkt;
private Instant skadetidspunkt;

@Schema(description = "Perioder med sykdom. Disse blir ignorert dersom tidstype er ulik 'periode'")
private List<Periode> perioder;
Expand Down

0 comments on commit 80c0e1c

Please sign in to comment.