aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-05 14:08:06 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-05 14:08:06 +0100
commit32815fa5e3199a253cc8961396860a63de6b91f4 (patch)
tree88ecc8ce8139b05c9fbd22889a3301825343114a
parent6b1fffca32c61851f396d0ead44013b5c789c3ad (diff)
downloadgovuk-mini-environment-admin-32815fa5e3199a253cc8961396860a63de6b91f4.tar
govuk-mini-environment-admin-32815fa5e3199a253cc8961396860a63de6b91f4.tar.gz
Have enqueued_jobs return instances of QueJob
-rw-r--r--app/jobs/enqueued_jobs.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/jobs/enqueued_jobs.rb b/app/jobs/enqueued_jobs.rb
index 7372ceb..116af98 100644
--- a/app/jobs/enqueued_jobs.rb
+++ b/app/jobs/enqueued_jobs.rb
@@ -22,8 +22,6 @@ module EnqueuedJobs
def enqueued_jobs(argument = nil)
condition = argument ? " AND args->>0 = '#{argument}'" : ''
- Que.execute(
- "SELECT * FROM que_jobs WHERE job_class = '#{name}'#{condition}"
- )
+ QueJob.where("job_class = '#{name}'#{condition}")
end
end