mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +02:00
added error logs handled, removed configuration data from validation event table
This commit is contained in:
parent
021d8eebc6
commit
2265bb1ea2
2 changed files with 3 additions and 1 deletions
|
@ -58,6 +58,8 @@ module Actions
|
||||||
result.success = result_validation.present?
|
result.success = result_validation.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
result.configuration = nil
|
||||||
|
|
||||||
contacts.find_in_batches(batch_size: 500) do |contact_batches|
|
contacts.find_in_batches(batch_size: 500) do |contact_batches|
|
||||||
contact_batches.each do |contact|
|
contact_batches.each do |contact|
|
||||||
# methods should be in this order!
|
# methods should be in this order!
|
||||||
|
|
|
@ -23,7 +23,7 @@ class ValidationEvent < ApplicationRecord
|
||||||
smtp: 1,
|
smtp: 1,
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
store_accessor :event_data, :errors, :check_level, :email
|
store_accessor :event_data, :check_level, :email
|
||||||
|
|
||||||
belongs_to :validation_eventable, polymorphic: true
|
belongs_to :validation_eventable, polymorphic: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue