added new condition for contacts which need to check

This commit is contained in:
olegphenomenon 2021-10-27 11:59:46 +03:00
parent 22454c4869
commit 490c44b4ba
2 changed files with 10 additions and 2 deletions

View file

@ -6,7 +6,7 @@
# For email_validation event kind also check_level (regex/mx/smtp) is stored in the event_data
class ValidationEvent < ApplicationRecord
enum event_type: ValidationEvent::EventType::TYPES, _suffix: true
VALIDATION_PERIOD = 1.month.freeze
VALIDATION_PERIOD = 1.day.freeze
VALID_CHECK_LEVELS = %w[regex mx smtp].freeze
VALID_EVENTS_COUNT_THRESHOLD = 5