diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-07 12:53:45 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-07 12:53:45 -0700 |
| commit | 9c84576258e05b05abee5eac36f8fc565c35bb8a (patch) | |
| tree | eee22b52f54779044fc94aa71161e2aad9ffeec8 /app/controllers/agents/files_controller.rb | |
| parent | 65145e6be87df7b0440fb98c11abc23a2b3c49ed (diff) | |
use single table inheritance for events table.
Diffstat (limited to 'app/controllers/agents/files_controller.rb')
| -rw-r--r-- | app/controllers/agents/files_controller.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/agents/files_controller.rb b/app/controllers/agents/files_controller.rb index 3c2e47b..95421e0 100644 --- a/app/controllers/agents/files_controller.rb +++ b/app/controllers/agents/files_controller.rb @@ -11,15 +11,9 @@ module Agents def show @fingerprint = params[:id] @file = Disposition.find_by(fingerprint: params[:id]) - Publisher.publish("queries", { - agent_id: params[:id], - name: params[:name], - data: params[:data] - }) - message = { agent_id: params[:id], - name: params[:name], + type: 'lookup', data: params[:data] } Publisher.publish("events.scanned.#{@agent.id}", message) |
