diff options
Diffstat (limited to 'app/graphql/mutations/ci/runner/update.rb')
-rw-r--r-- | app/graphql/mutations/ci/runner/update.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/graphql/mutations/ci/runner/update.rb b/app/graphql/mutations/ci/runner/update.rb index 70f08e03553..00865b177a8 100644 --- a/app/graphql/mutations/ci/runner/update.rb +++ b/app/graphql/mutations/ci/runner/update.rb @@ -27,7 +27,7 @@ module Mutations description: 'Runner after mutation.' def resolve(id:, **runner_attrs) - runner = authorized_find!(id) + runner = authorized_find!(id: id) associated_projects_ids = runner_attrs.delete(:associated_projects) @@ -40,10 +40,6 @@ module Mutations response end - def find_object(id) - GitlabSchema.find_by_gid(id) - end - private def associate_runner_projects(response, runner, associated_project_ids) |