Commit 5e6e224
Changed files (2)
app
controllers
agents
views
agents
files
app/controllers/agents/files_controller.rb
@@ -9,6 +9,7 @@ module Agents
end
def show
+ @fingerprint = params[:id]
@file = Disposition.find_by(fingerprint: params[:id])
Publisher.publish("queries", {
agent_id: params[:id],
app/views/agents/files/show.json.jbuilder
@@ -1,6 +1,6 @@
if @file
json.extract! @file, :fingerprint, :state
else
- json.fingerprint params[:fingerprint]
+ json.fingerprint @fingerprint
json.state "unknown"
end