mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
return back
This commit is contained in:
parent
23bfc99b7a
commit
146f0bcdd8
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@
|
||||||
# For email_validation event kind also check_level (regex/mx/smtp) is stored in the event_data
|
# For email_validation event kind also check_level (regex/mx/smtp) is stored in the event_data
|
||||||
class ValidationEvent < ApplicationRecord
|
class ValidationEvent < ApplicationRecord
|
||||||
enum event_type: ValidationEvent::EventType::TYPES, _suffix: true
|
enum event_type: ValidationEvent::EventType::TYPES, _suffix: true
|
||||||
VALIDATION_PERIOD = 30.seconds.freeze
|
VALIDATION_PERIOD = 1.year.freeze
|
||||||
VALID_CHECK_LEVELS = %w[regex mx smtp].freeze
|
VALID_CHECK_LEVELS = %w[regex mx smtp].freeze
|
||||||
VALID_EVENTS_COUNT_THRESHOLD = 5
|
VALID_EVENTS_COUNT_THRESHOLD = 5
|
||||||
MX_CHECK = 15
|
MX_CHECK = 3
|
||||||
|
|
||||||
INVALID_EVENTS_COUNT_BY_LEVEL = {
|
INVALID_EVENTS_COUNT_BY_LEVEL = {
|
||||||
regex: 1,
|
regex: 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue