Let the lead configure the iPhone Action button

This commit is contained in:
Ian Gulliver
2026-10-22 17:37:16 -07:00
parent 16e03c8ae4
commit f3b15696b3
2 changed files with 42 additions and 19 deletions
+2 -19
View File
@@ -47,26 +47,9 @@ func (s *Server) UpdateQuickRun(w http.ResponseWriter, r *http.Request) {
return
}
if (req.ProjectId == "") != (req.Workflow == "") {
writeError(w, http.StatusBadRequest, errors.New("project_id and workflow are set together"))
return
}
if req.ProjectId != "" {
_, err := s.store.GetProject(r.Context(), req.ProjectId)
if err != nil {
writeStoreError(w, err)
return
}
_, err = s.store.GetWorkflow(r.Context(), req.Workflow)
if err != nil {
writeStoreError(w, err)
return
}
}
u, err := s.store.UpdateQuickRun(r.Context(), actor(r), req)
u, err := s.agents.SetQuickRun(r.Context(), actor(r), req)
if err != nil {
writeStoreError(w, err)
writeAgentError(w, err)
return
}
writeJSON(w, http.StatusOK, u)