Unify active task loading across API handlers
This commit is contained in:
@@ -19,7 +19,7 @@ const (
|
||||
)
|
||||
|
||||
func (s *Server) GetTaskTerminal(w http.ResponseWriter, r *http.Request, taskID string, params api.GetTaskTerminalParams) {
|
||||
t, _, ok := s.activeTask(w, r, taskID)
|
||||
t, ok := s.activeTask(w, r, taskID)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user