Skip to content

Commit

Permalink
Update status extraction condition in BestillingPdlOrdreStatusMapper
Browse files Browse the repository at this point in the history
Enhance the status checking logic to include cases where `PdlOrdreStatus` contains `"ordrer":[]`. This ensures that empty order arrays are properly handled, preventing potential issues with status extraction.
  • Loading branch information
krharum committed Sep 27, 2024
1 parent 14f7e93 commit 22d9d5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static List<RsStatusRapport> buildPdlOrdreStatusMap(List<BestillingProgre
bestProgress.forEach(progress -> {
if (isNotBlank(progress.getPdlOrdreStatus()) && isNotBlank(progress.getIdent())) {

if (progress.getPdlOrdreStatus().contains("PDL_")) {
if (progress.getPdlOrdreStatus().contains("PDL_") || progress.getPdlOrdreStatus().contains("\"ordrer\":[]")) {
extractStatus(meldingIdents, progress, objectMapper);

} else {
Expand Down

0 comments on commit 22d9d5f

Please sign in to comment.