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

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

module WorkItems
  module Widgets
    module LabelsService
      class CreateService < BaseService
        def prepare_create_params(params: {})
          prepare_params(params: params, permitted_params: %i[add_label_ids remove_label_ids label_ids])
        end

        def clear_label_params(params)
          params[:add_label_ids] = []
          params[:label_ids] = []
        end
      end
    end
  end
end