generated from VLADIMIR/template
update edit node
This commit is contained in:
@@ -211,13 +211,12 @@ func (s *Services) UpdateNode(ctx context.Context, req *proto.UpdateNodeReq) (*p
|
||||
)
|
||||
}
|
||||
node := &story_service.GraphNode{
|
||||
ID: req.Node.Id,
|
||||
Label: req.Node.Label,
|
||||
Code: req.Node.Code,
|
||||
Name: req.Node.Name,
|
||||
Text: req.Node.Text,
|
||||
Applications: applications,
|
||||
}
|
||||
if err := s.storyService.UpdatePlace(node); err != nil {
|
||||
if err := s.storyService.UpdatePlace(req.Code, node); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &proto.UpdateNodeRsp{}, nil
|
||||
@@ -237,8 +236,7 @@ func (s *Services) GetGraph(ctx context.Context, req *proto.GetGraphReq) (*proto
|
||||
)
|
||||
}
|
||||
nodes = append(nodes, &proto.GraphNode{
|
||||
Id: node.ID,
|
||||
Label: node.Label,
|
||||
Code: node.Code,
|
||||
Name: node.Name,
|
||||
Text: node.Text,
|
||||
Applications: applications,
|
||||
|
||||
Reference in New Issue
Block a user