mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-16 03:41:41 +00:00
Add to_i for Agent postgres compatibility
This commit is contained in:
parent
e5c2cac42a
commit
686694cdd2
1 changed files with 2 additions and 2 deletions
|
@ -266,8 +266,8 @@ class Agent < ActiveRecord::Base
|
|||
|
||||
agents_to_events = {}
|
||||
Agent.connection.select_rows(sql).each do |receiver_agent_id, source_agent_id, event_id|
|
||||
agents_to_events[receiver_agent_id] ||= []
|
||||
agents_to_events[receiver_agent_id] << event_id
|
||||
agents_to_events[receiver_agent_id.to_i] ||= []
|
||||
agents_to_events[receiver_agent_id.to_i] << event_id
|
||||
end
|
||||
|
||||
event_ids = agents_to_events.values.flatten.uniq.compact
|
||||
|
|
Loading…
Add table
Reference in a new issue