summaryrefslogtreecommitdiff
path: root/app/controllers/api/agents
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-09 19:56:40 -0700
committermo khan <mo@mokhan.ca>2015-02-09 19:56:40 -0700
commit99eb8e0e8ba68bfdc6f97d58af2e7a1d7ba2e3ba (patch)
treefb5ac3af279e5fa25d1a3745df194fc350bdd8f6 /app/controllers/api/agents
parent9061437f38cd7d4775fc4599e8c557fda9ed4743 (diff)
specifiy correct agent id in lookup event.
Diffstat (limited to 'app/controllers/api/agents')
-rw-r--r--app/controllers/api/agents/files_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/agents/files_controller.rb b/app/controllers/api/agents/files_controller.rb
index fd7410c..1329d04 100644
--- a/app/controllers/api/agents/files_controller.rb
+++ b/app/controllers/api/agents/files_controller.rb
@@ -10,7 +10,7 @@ module Api
@fingerprint = params[:id]
@file = Disposition.find_by(fingerprint: params[:id])
message = {
- agent_id: params[:id],
+ agent_id: @agent.id,
type: :lookup,
data: params[:data]
}