Skip to content

Commit

Permalink
fix incorrect naming, should be terminal structure (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
runeanielsen authored Jan 13, 2025
1 parent b6f1cbc commit 80186b6
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ public UtilityNetworkServiceQueries(ILogger<UtilityNetworkServiceQueries> logger
return terminalEquipment;
});

Field<TerminalStructureType>("terminalSructure")
Field<TerminalStructureType>("terminalStructure")
.Description("Query information related to a specific terminal structure")
.Arguments(new QueryArguments(
new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "terminalEquipmentOrTerminalId" },
new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "terminalStructureId" })
)
new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "terminalEquipmentOrTerminalId" },
new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "terminalStructureId" })
)
.ResolveAsync(async context =>
{
var terminalEquipmentOrTerminalId = context.GetArgument<Guid>("terminalEquipmentOrTerminalId");
Expand Down Expand Up @@ -225,10 +225,8 @@ public UtilityNetworkServiceQueries(ILogger<UtilityNetworkServiceQueries> logger
return null;
}


return terminalEquipment.TerminalStructures.First(t => t.Id == terminalStructureId);
});

});

Field<SpanEquipmentType>("spanEquipment")
.Description("Query information related to a specific span equipment")
Expand Down

0 comments on commit 80186b6

Please sign in to comment.