mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
added constant mx time check
This commit is contained in:
parent
974ff23cf4
commit
34654ecef9
2 changed files with 3 additions and 2 deletions
|
@ -9,10 +9,11 @@ class ValidationEvent < ApplicationRecord
|
|||
VALIDATION_PERIOD = 1.year.freeze
|
||||
VALID_CHECK_LEVELS = %w[regex mx smtp].freeze
|
||||
VALID_EVENTS_COUNT_THRESHOLD = 5
|
||||
MX_CHECK = 3
|
||||
|
||||
INVALID_EVENTS_COUNT_BY_LEVEL = {
|
||||
regex: 1,
|
||||
mx: 2,
|
||||
mx: MX_CHECK,
|
||||
smtp: 1,
|
||||
}.freeze
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue