mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
fix #7: removed data from request env
This commit is contained in:
parent
76fe69bb35
commit
810fbc35a2
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user