Commit 52742913 authored by Cool Fire's avatar Cool Fire

Fixed variable name

parent 16be98ae
...@@ -17,7 +17,7 @@ class ApiController < ApplicationController ...@@ -17,7 +17,7 @@ class ApiController < ApplicationController
end end
# Check if this needs to be a request or if it can be done directly # Check if this needs to be a request or if it can be done directly
if(autorun(params[:command])) if(autorun(params[:command_id]))
@job = Job.new() @job = Job.new()
@job.server_id = Server.find_by_shortname(params[:server_id]).id @job.server_id = Server.find_by_shortname(params[:server_id]).id
@job.command_id = Command.find_by_command(params[:command_id]).id @job.command_id = Command.find_by_command(params[:command_id]).id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment