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

update_service.rb « weight_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: cd62a25358f87df00b812bc3d91691bbf16b59a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module WorkItems
  module Widgets
    module WeightService
      class UpdateService < WorkItems::Widgets::BaseService
        def update(params: {})
          return unless params.present? && params[:weight]

          widget.work_item.weight = params[:weight]
        end
      end
    end
  end
end