code: func (c *Client) UpdateInterval(from contract.Interval) (err error) {
  	check, err := c.IntervalByName(from.Name)
  	if err != nil && err != redis.ErrNil {
  		return err
  	}
  	if err == nil && from.ID != check.ID {
  		// IDs are different -> name not unique
  		return db.ErrNotUnique
  	}
  
  	from.Timestamps.Modified = db.MakeTimestamp()
  	err = mergo.Merge(&from, check)
  	if err != nil {
  		return err
  	}
  
  	interval := models.NewInterval(from)
  	data, err := json.Marshal(interval)
  	if err != nil {
  		return err
  	}
  
  	conn := c.Pool.Get()
  	defer conn.Close()
  
  	_ = conn.Send("MULTI")
  	deleteObject(interval, interval.ID, conn)
  	addObject(data, interval, interval.ID, conn)
  	_, err = conn.Do("EXEC")
  
  	return err
  }
docs: // Update a schedule interval