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

update_service.rb « description_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: e63b6b2ee6c11a5b8b8f382d32ff10dca37366a2 (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 DescriptionService
      class UpdateService < WorkItems::Widgets::BaseService
        def update(params: {})
          return unless params.present? && params[:description]

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