fix #7: removed data from request env

This commit is contained in:
Frederik Löffert 2016-06-10 17:51:26 +02:00
parent 76fe69bb35
commit 810fbc35a2
2 changed files with 3 additions and 2 deletions

View File

@ -80,11 +80,14 @@ func (repo *Repo) getNodes(nodeRequests map[string]*requests.Node, env *requests
nodes[nodeName] = nil
if !ok && nodeRequest.Dimension == "" {
log.Debug(" could not get dimension root node for dimension " + nodeRequest.Dimension)
for _, dimension := range env.Dimensions {
dimensionNode, ok = repo.Directory[dimension]
if ok {
log.Debug(" searched for root node in env.dimension " + dimension + " with success")
break
}
log.Debug(" searched for root node in env.dimension " + dimension + " without success")
}
}

View File

@ -6,8 +6,6 @@ type Env struct {
Dimensions []string `json:"dimensions"`
// who is it for
Groups []string `json:"groups"`
// well that would be your state
Data interface{} `json:"data"`
}
// Node - an abstract node request, use this one to request navigations