mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +02:00
added days interval
This commit is contained in:
parent
92f82194e1
commit
0829f387f2
1 changed files with 3 additions and 2 deletions
|
@ -51,8 +51,9 @@ class CompanyRegisterStatusJob < ApplicationJob
|
|||
"(company_register_status IS NULL OR checked_company_at IS NULL) OR
|
||||
(company_register_status = ? AND checked_company_at < ?) OR
|
||||
company_register_status IN (?)",
|
||||
Contact::REGISTERED, 365.days.ago, [Contact::LIQUIDATED, Contact::BANKRUPT, Contact::DELETED]
|
||||
).distinct
|
||||
Contact::REGISTERED, days_interval.days.ago, [Contact::LIQUIDATED, Contact::BANKRUPT, Contact::DELETED]
|
||||
)
|
||||
.distinct
|
||||
end
|
||||
|
||||
def update_validation_company_status(contact:, status:)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue