diff --git a/api/projects/tasks.go b/api/projects/tasks.go index 2080a47fe..e679dbfa9 100644 --- a/api/projects/tasks.go +++ b/api/projects/tasks.go @@ -159,7 +159,7 @@ func GetTaskMiddleware(next http.Handler) http.Handler { }) } -// GetTaskMiddleware is middleware that gets a task by id and sets the context to it or panics +// NewTaskMiddleware is middleware that binds a task from the request body and sets the context to it func NewTaskMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {