Skip to content

Commit

Permalink
UPDATE: statistikk service to use page number of element when getting…
Browse files Browse the repository at this point in the history
… data
  • Loading branch information
JeremiahUy committed Aug 12, 2024
1 parent 83e6142 commit 2f7ffb9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@ public Page<BehandlingStatistikk> getAllBehandlingStatistikk(Pageable page) {
});
});

if (etterlevelseDokumentasjoner.isEmpty()) {
return new PageImpl<>(new ArrayList<>(), page, totalElements.get());
} else {
return new PageImpl<>(behandlingStatistikkList, page, totalElements.get());
}
return new PageImpl<>(behandlingStatistikkList, page, etterlevelseDokumentasjoner.getTotalElements());
}

public EtterlevelseStatistikkResponse toEtterlevelseStatistikkResponse(Etterlevelse etterlevelse) {
Expand Down

0 comments on commit 2f7ffb9

Please sign in to comment.