From 886a166e561ccd83949f8a730767f7196a7b32a9 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 14 Sep 2024 08:55:49 -0400 Subject: [PATCH] Give SwarmNode a specific `NodeId` field and unmangle `Identifier` --- src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs b/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs index 2701e828b5..21979f2b36 100644 --- a/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs +++ b/src/Tgstation.Server.Host/GraphQL/Types/SwarmNode.cs @@ -17,13 +17,18 @@ namespace Tgstation.Server.Host.GraphQL.Types /// /// Represents a node server in a swarm. /// - [Node(IdField = nameof(Identifier))] + [Node] public sealed class SwarmNode : IServerNode { /// - /// The swarm server ID. + /// The node ID. /// [ID] + public string NodeId => Identifier; + + /// + /// The swarm server ID. + /// public string Identifier { get; } ///