Skip to content

Commit

Permalink
add check for get last checkin ordinal
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 21, 2024
1 parent 0fcc86b commit 35ef5ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public KeyResult toKeyResultOrdinal(KeyResultOrdinalDto keyResultOrdinalDto) {

public KeyResultLastCheckInOrdinalDto getLastCheckInDto(Long keyResultId) {
CheckIn lastCheckIn = checkInBusinessService.getLastCheckInByKeyResultId(keyResultId);
if (lastCheckIn == null) {
if (!(lastCheckIn instanceof CheckInOrdinal)) {
return null;
}
return new KeyResultLastCheckInOrdinalDto(lastCheckIn.getId(), lastCheckIn.getVersion(),
Expand Down

0 comments on commit 35ef5ea

Please sign in to comment.