code: private Date changeRestoreStatus(Restoration restoration,
                                       RestoreStatus status,
                                       String msg,
                                       Date currentDate) {
          log.info("Changing restore status to: " + status + " with message: " + msg);
          restoration.setStatus(status);
          restoration.setStatusText(msg);
          Date expirationDate = getExpirationDate(currentDate, daysToExpire);
          if (status.equals(RestoreStatus.RESTORATION_COMPLETE)) {
              restoration.setEndDate(currentDate);
              restoration.setExpirationDate(expirationDate);
          }
          restoreRepo.save(restoration);
          eventLog.logRestoreUpdate(restoration);
  
          return expirationDate;
      }
docs: Updates the restore details in the database
  
  @param restoration the restoration being worked
  @param status      the new status of the restoration
  @param msg         status text