Commit 808fba83 authored by Valery Sizov's avatar Valery Sizov

Merge branch 'es_minor_fix' into 'master'

[ES] Minor refactoring



See merge request !246
parents d71a68ee 26d4147f
......@@ -59,28 +59,6 @@ module Elastic
filters = []
if options[:abandoned]
filters << {
range: {
last_pushed_at: {
lte: "now-6M/m"
}
}
}
end
if options[:with_push]
filters << {
not: {
missing: {
field: :last_pushed_at,
existence: true,
null_value: true
}
}
}
end
if options[:namespace_id]
filters << {
terms: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment