diff --git a/app/filters/good_job/jobs_filter.rb b/app/filters/good_job/jobs_filter.rb index dc366d6a..a78d1dec 100644 --- a/app/filters/good_job/jobs_filter.rb +++ b/app/filters/good_job/jobs_filter.rb @@ -39,7 +39,7 @@ def filtered_query(filter_params = params) when 'scheduled' query = query.scheduled when 'running' - query = query.running.select("#{GoodJob::Job.table_name}.*", 'pg_locks.locktype') + query = query.running when 'queued' query = query.queued end @@ -55,7 +55,7 @@ def filtered_count private def query_for_records - filtered_query.includes_advisory_locks + filtered_query end def default_base_query