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

destroy_base.rb « container_repositories « mutations « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ddaa6c521212ca01fa2b3d000dcab62453d1be97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Mutations
  module ContainerRepositories
    class DestroyBase < Mutations::BaseMutation
      include ::Mutations::PackageEventable

      private

      def find_object(id:)
        # TODO: remove this line when the compatibility layer is removed
        # See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883
        id = ::Types::GlobalIDType[::ContainerRepository].coerce_isolated_input(id)
        GitlabSchema.find_by_gid(id)
      end
    end
  end
end