#312: missprint
This commit is contained in:
parent
bd46aa44fc
commit
9e9feb2055
|
@ -43,10 +43,10 @@ class Api::V1::JobsController < Api::V1::BaseController
|
||||||
def feedback
|
def feedback
|
||||||
worker_queue = params[:worker_queue]
|
worker_queue = params[:worker_queue]
|
||||||
worker_class = params[:worker_class]
|
worker_class = params[:worker_class]
|
||||||
if QUEUES.include?(worker_queue) && QUEUE_CLASSES.include?(worker_class)
|
if QUEUES.include?(worker_queue) && QUEUE_CLASSES.include?(worker_class)
|
||||||
worker_args = (params[:worker_args] || []).first || {}
|
worker_args = (params[:worker_args] || []).first || {}
|
||||||
worker_args = worker_args.merge(:feedback_from_user => current_user.id)
|
worker_args = worker_args.merge(:feedback_from_user => current_user.id)
|
||||||
Resque.push worker_queue, 'class' => worker_class, 'args' => [worker_args]
|
Resque.push worker_queue, 'class' => worker_class, 'args' => [worker_args]
|
||||||
render :nothing => true
|
render :nothing => true
|
||||||
else
|
else
|
||||||
render :nothing => true, :status => 403
|
render :nothing => true, :status => 403
|
||||||
|
|
Loading…
Reference in New Issue