Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: fix automation return response
Kyle Mendell9be2612caf01
diff --git a/backend/internal/job/resolution.go b/backend/internal/job/resolution.goindex 948554503..4964897d5 100644--- a/backend/internal/job/resolution.go+++ b/backend/internal/job/resolution.go@@ -15,7 +15,7 @@ import (func (h *JobSchedulesHandler) ResolveRun(ctx context.Context, input *jobschedule.ResolveRunInput) (*jobschedule.RunOutput, error) {actor, _ := middleware.GetUserIDFromContext(ctx)permissions, _ := middleware.PermissionsFromContext(ctx)- if input.Body.ResolvedBy != "" {+ if input.Body != nil && input.Body.ResolvedBy != "" {if permissions == nil || !permissions.Sudo || !h.jobService.cfg.AgentMode {return nil, huma.Error403Forbidden("only authenticated manager transport may forward an operator identity")}diff --git a/types/jobschedule/runs.go b/types/jobschedule/runs.goindex 81196ae42..c1c160e12 100644--- a/types/jobschedule/runs.go+++ b/types/jobschedule/runs.go@@ -24,7 +24,7 @@ type ListRunsOutput struct{ Body st.RunList }type ResolveRunInput struct {RunInput- Body struct {+ Body *struct {ResolvedBy string `json:"resolvedBy,omitempty"`}}