lib/rest-ftp-daemon/api/dashboard.rb in rest-ftp-daemon-0.306.4 vs lib/rest-ftp-daemon/api/dashboard.rb in rest-ftp-daemon-0.400.0

- old
+ new

@@ -31,14 +31,14 @@ # Detect QS filters @filter = filter.to_s @page = params["page"].to_i # Get jobs for this view, order jobs by their weights - jobs_with_status = $queue.jobs_with_status(filter).reverse + jobs_with_status = RestFtpDaemon::JobQueue.instance.jobs_with_status(filter).reverse # Provide queue only if no filtering set if filter.empty? - @jobs_queued = $queue.jobs_queued + @jobs_queued = RestFtpDaemon::JobQueue.instance.jobs_queued else @jobs_queued = [] end # Build paginator