265478ad74
For directories application_settings --> labels. Partially addresses #47424.
14 lines
357 B
Ruby
14 lines
357 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Issuable
|
|
class DestroyService < IssuableBaseService
|
|
def execute(issuable)
|
|
TodoService.new.destroy_target(issuable) do |issuable|
|
|
if issuable.destroy
|
|
issuable.update_project_counter_caches
|
|
issuable.assignees.each(&:invalidate_cache_counts)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|