lib/mutx/routes.rb in mutx-0.1.13 vs lib/mutx/routes.rb in mutx-0.1.14

- old
+ new

@@ -50,12 +50,10 @@ on true do data = req.params.dup - data["_id"] = data["_id"].to_i - response = Mutx::API::CustomParams.set data # Creates or update path = "/admin/custom/params" path += "?msg=#{response[:message]}" if response[:message] @@ -498,15 +496,15 @@ result = Mutx::API::Execution.start task_name, query_string.values res.write result.to_json end on "api/tasks/:id/status" do |task_id| - output = Mutx::API::Task.status(task_id.to_i) + output = Mutx::API::Task.status(task_id) res.write output.to_json end on "api/tests/:id/status" do |task_id| - output = Mutx::API::Task.status(task_id.to_i) + output = Mutx::API::Task.status(task_id) res.write output.to_json end on "api/tasks/running" do output = Mutx::API::Tasks.list({running:true, type:"task"}) \ No newline at end of file