code: func mapIntervalActions(actions []models.IntervalAction, err error) ([]contract.IntervalAction, error) {
  	if err != nil {
  		return []contract.IntervalAction{}, err
  	}
  	mapped := make([]contract.IntervalAction, 0)
  	for _, action := range actions {
  		mapped = append(mapped, action.ToContract())
  	}
  	return mapped, nil
  }
docs: // Map IntervalActions