Skip to content

Commit

Permalink
Bedre response til frontend ved BadRequest
Browse files Browse the repository at this point in the history
#deploy-test-sykemelding-api
  • Loading branch information
stigus committed Dec 6, 2024
1 parent 69674b3 commit 745e07c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public static void validate(SykemeldingDTO dto) {
if (isNull(dto.getPerioder())) {
missingFields.add("perioder");
}
if (isNull(dto.getUtdypendeOpplysninger())) {
missingFields.add("utdypendeOpplysninger");
}
if (isNull(dto.getHelsepersonell())) {
missingFields.add("helsepersonell");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public List<DiagnoseDTO> getBiDiagnoser() {

public List<UtdypendeOpplysningerDTO> getUtdypendeOpplysninger() {

if(isNull(utdypendeOpplysninger)) {
if (isNull(utdypendeOpplysninger)) {
utdypendeOpplysninger = new ArrayList<>();
}
return utdypendeOpplysninger;
Expand Down

0 comments on commit 745e07c

Please sign in to comment.