From 35bd76ac5b911683d0bc86ce6bb5f71dfe6a4c0c Mon Sep 17 00:00:00 2001 From: Ionite Date: Thu, 26 Oct 2023 15:30:57 -0400 Subject: [PATCH] Fix output type ordering --- .../Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs | 6 +++--- .../Models/Api/Comfy/Nodes/NamedComfyNode.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs index c31b8799..c9625f1c 100644 --- a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs +++ b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/ComfyTypedNodeBase.cs @@ -68,7 +68,7 @@ public abstract record ComfyTypedNodeBase : ComfyTypedNodeBa public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } }; [JsonIgnore] - public TOutput1 Output2 => new() { Data = new object[] { Name, 1 } }; + public TOutput2 Output2 => new() { Data = new object[] { Name, 1 } }; public static implicit operator NamedComfyNode( ComfyTypedNodeBase node @@ -84,10 +84,10 @@ public abstract record ComfyTypedNodeBase : ComfyT public TOutput1 Output1 => new() { Data = new object[] { Name, 0 } }; [JsonIgnore] - public TOutput1 Output2 => new() { Data = new object[] { Name, 1 } }; + public TOutput2 Output2 => new() { Data = new object[] { Name, 1 } }; [JsonIgnore] - public TOutput1 Output3 => new() { Data = new object[] { Name, 2 } }; + public TOutput3 Output3 => new() { Data = new object[] { Name, 2 } }; public static implicit operator NamedComfyNode( ComfyTypedNodeBase node diff --git a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs index bbaaede2..d50f6eaf 100644 --- a/StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs +++ b/StabilityMatrix.Core/Models/Api/Comfy/Nodes/NamedComfyNode.cs @@ -51,5 +51,5 @@ public record NamedComfyNode(string Name) : NamedC public TOutput2 Output2 => new() { Data = GetOutput(1) }; - public TOutput2 Output3 => new() { Data = GetOutput(2) }; + public TOutput3 Output3 => new() { Data = GetOutput(2) }; }