app/interactors/outdated_problem_clearer.rb
##
# Clear all problem not present for more than one week.
#
Clear all problem not present for more than one week.
Clear all problem not present for more than one week .
def execute
    nb_problem_outdated.tap do |nb|
      if nb > 0
        criteria.each do |problem|
          ProblemDestroy.new(problem).execute
        end
        repair_database
      end
    end
  end
def execute nb_problem_outdated . tap do | nb | if nb > 0 criteria . each do | problem | ProblemDestroy . new ( problem ) . execute end repair_database end end end
Clear all problem not present for more than one week.
Clear all problem not present for more than one week .