update edit node

This commit is contained in:
2025-12-13 20:35:18 +07:00
parent 48e7adace0
commit 3b182d7380
11 changed files with 208 additions and 355 deletions
+3 -5
View File
@@ -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,