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 {
Success bool
Messages []string
Errors []string
Success bool `json:"success"`
Messages []string `json:"messages"`
Errors []string `json:"errors"`
}
func DeployKeysToMachine(ctx context.Context, serverKeyPath string, host string, port int, user string, keys []DeployKey, knownHostsHosts []string) (*DeployResult, error) {