Add basic interactor/organizer support

This commit is contained in:
Alex Sherman 2020-11-09 17:26:07 +05:00
parent 0570e4352f
commit 4b980a07f5
8 changed files with 113 additions and 0 deletions

View file

@ -7,6 +7,10 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
:contact_notification_sent_date,
:template_name
STATUSES_TO_SET = [DomainStatus::FORCE_DELETE,
DomainStatus::SERVER_RENEW_PROHIBITED,
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
scope :notification_not_sent,
lambda {
where("(force_delete_data->>'contact_notification_sent_date') is null")