Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Nov 24, 2023
1 parent 33631fd commit e79d6e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static String getBlankWhenNull(final String s) {
public static void setCloseDateIfRequired(School school, SchoolMasterEntity entity){
if (StringUtils.isNotEmpty(school.getClosedDate()) && dateTimeMapper.map(school.getClosedDate()).isAfter(LocalDateTime.now())){
if(entity != null) {
school.setClosedDate(entity.getClosedDate());
school.setClosedDate(dateTimeMapper.map(entity.getDateClosed()));
}else{
school.setClosedDate(null);
}
Expand All @@ -45,7 +45,7 @@ public static void setCloseDateIfRequired(School school, SchoolMasterEntity enti
public static void setCloseDateIfRequired(IndependentAuthority authority, AuthorityMasterEntity entity){
if (StringUtils.isNotEmpty(authority.getClosedDate()) && dateTimeMapper.map(authority.getClosedDate()).isAfter(LocalDateTime.now())){
if(entity != null) {
authority.setClosedDate(entity.getClosedDate());
authority.setClosedDate(dateTimeMapper.map(entity.getDateClosed()));
}else{
authority.setClosedDate(null);
}
Expand Down

0 comments on commit e79d6e0

Please sign in to comment.