Skip to content

Commit

Permalink
fix: rename embedGroups to toolGroups (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
RutZap authored Oct 16, 2024
1 parent b4933a7 commit f40f054
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 270 deletions.
4 changes: 2 additions & 2 deletions tools/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ func (g *Generator) generateEmbeddedActionLinks() {
if input := g.Tools[toolId].getInput("$.where." + f.InverseFieldName.Value + ".id.equals"); input != nil {
displayOrder++
// embed the tool
tool.Config.EmbedGroups = append(tool.Config.EmbedGroups, &toolsproto.EmbedGroup{
tool.Config.EmbeddedActions = append(tool.Config.EmbeddedActions, &toolsproto.ToolGroup{
Title: &toolsproto.StringTemplate{Template: f.Name}, // e.g. `orderItems` on a getOrder action
DisplayOrder: int32(displayOrder),
Tools: []*toolsproto.EmbedGroup_EmbeddedActionLink{
Tools: []*toolsproto.ToolGroup_GroupActionLink{
{
ActionLink: &toolsproto.ActionLink{
ToolId: toolId,
Expand Down
Loading

0 comments on commit f40f054

Please sign in to comment.