Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/ci/catalog/resources/create.rb')
-rw-r--r--app/graphql/mutations/ci/catalog/resources/create.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/graphql/mutations/ci/catalog/resources/create.rb b/app/graphql/mutations/ci/catalog/resources/create.rb
index 7f934e101c8..34d60f780ca 100644
--- a/app/graphql/mutations/ci/catalog/resources/create.rb
+++ b/app/graphql/mutations/ci/catalog/resources/create.rb
@@ -4,13 +4,9 @@ module Mutations
module Ci
module Catalog
module Resources
- class Create < BaseMutation
+ class Create < Base
graphql_name 'CatalogResourcesCreate'
- argument :project_path, GraphQL::Types::ID,
- required: true,
- description: 'Project to convert to a catalog resource.'
-
authorize :add_catalog_resource
def resolve(project_path:)
@@ -23,12 +19,6 @@ module Mutations
errors: errors
}
end
-
- private
-
- def find_object(project_path:)
- Project.find_by_full_path(project_path)
- end
end
end
end