Class: Todos::Destroy::BaseService

Inherits:
Object
  • Object
show all
Defined in:
app/services/todos/destroy/base_service.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



6
7
8
9
10
11
12
13
# File 'app/services/todos/destroy/base_service.rb', line 6

def execute
  return unless todos_to_remove?

  ::Gitlab::Database.allow_cross_joins_across_databases(url:
      'https://gitlab.com/gitlab-org/gitlab/-/issues/422045') do
    without_authorized(todos).delete_all
  end
end