mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
updated time limit to one year and mx to 3 times
This commit is contained in:
parent
8126cbaecc
commit
16dd4de37d
1 changed files with 2 additions and 2 deletions
|
@ -6,13 +6,13 @@
|
|||
# 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 = 30.minutes.freeze
|
||||
VALIDATION_PERIOD = 1.year.freeze
|
||||
VALID_CHECK_LEVELS = %w[regex mx smtp].freeze
|
||||
VALID_EVENTS_COUNT_THRESHOLD = 5
|
||||
|
||||
INVALID_EVENTS_COUNT_BY_LEVEL = {
|
||||
regex: 1,
|
||||
mx: 2,
|
||||
mx: 3,
|
||||
smtp: 1,
|
||||
}.freeze
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue