fix: add json tags to DeployResult for camelCase serialization

DeployResult struct fields were serializing as PascalCase (Success,
Messages, Errors) but the TypeScript frontend expected camelCase
(success, messages, errors). Adding json:"..." tags fixes the mismatch.
This commit is contained in:
2026-07-09 21:25:49 -04:00
parent 0a82f4e777
commit 935fa83b93
+3 -3
View File
@@ -20,9 +20,9 @@ type DeployKey struct {
} }
type DeployResult struct { type DeployResult struct {
Success bool Success bool `json:"success"`
Messages []string Messages []string `json:"messages"`
Errors []string Errors []string `json:"errors"`
} }
func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) { func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) {