mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Clean up
This commit is contained in:
parent
6eddbb81ad
commit
e568369e36
2 changed files with 7 additions and 4 deletions
|
@ -155,7 +155,7 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
|
|||
end
|
||||
|
||||
def notify_parties(reason)
|
||||
ent = notification_template if reason == 'ENTITY_BURIED'
|
||||
ent = notification_template if %w[ENTITY_BURIED EMAIL].include? reason
|
||||
ent ||= reason.downcase
|
||||
self.template_name = ent
|
||||
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
class MassAction
|
||||
def self.process(action_type, entries)
|
||||
return false unless %w[force_delete].include?(action_type)
|
||||
|
||||
entries = CSV.read(entries, headers: true)
|
||||
process_force_delete(entries) if action_type == force_delete
|
||||
case action_type
|
||||
when 'force_delete'
|
||||
process_force_delete(entries)
|
||||
else
|
||||
false
|
||||
end
|
||||
rescue StandardError
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue