Add search deploy date options

This commit is contained in:
KMY 2023-09-16 10:53:09 +09:00
parent 173b9f4fd7
commit 0ffd8acacd
4 changed files with 12 additions and 3 deletions

View file

@ -27,6 +27,9 @@ class Importer::PublicStatusesIndexImporter < Importer::BaseImporter
end
def scope
Status.indexable.reorder(nil)
to_index = Status.indexable.reorder(nil)
to_index = to_index.where('statuses.created_at >= ?', @from) if @from.present?
to_index = to_index.where('statuses.created_at < ?', @to) if @to.present?
to_index
end
end