lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.1 vs lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.2
- old
+ new
@@ -10,10 +10,10 @@
request = ::Rack::Request.new(env)
job_args = extract_args(request)
job_class.perform_now(job_args)
- response(200, { error: nil })
+ response(200, {})
rescue Rack::InvalidPayloadError => e
response(422, { error: e.message })
rescue StandardError => e
response(500, { error: e.message })
end