add link doors

This commit is contained in:
2026-05-29 09:03:46 +07:00
parent 813493ffa7
commit 544fac2a76
@@ -294,6 +294,16 @@ func (s *StoryService) GetGraph(ctx context.Context) *Graph {
) )
} }
} }
for _, door := range place.Doors {
edges = append(
edges,
&GraphEdge{
From: m[s.cleaner.ClearCode(place.Code)],
To: m[s.cleaner.ClearCode(door.Code)],
Type: "door",
},
)
}
} }
return &Graph{ return &Graph{