mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
Add updated at field for contact search #2866
This commit is contained in:
parent
b154c75106
commit
f5c379ca72
2 changed files with 8 additions and 1 deletions
|
@ -67,6 +67,9 @@ class Admin::ContactsController < AdminController
|
|||
begin
|
||||
end_time = params[:q][:created_at_lteq].try(:to_date)
|
||||
params[:q][:created_at_lteq] = end_time.try(:end_of_day)
|
||||
# updated at
|
||||
end_time = params[:q][:updated_at_gteq].try(:to_date)
|
||||
params[:q][:updated_at_lteq] = end_time.try(:end_of_day)
|
||||
rescue
|
||||
logger.warn('Invalid date')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue