mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Work around counter cache bug when not selecting the cached column
This commit is contained in:
parent
5cfca6bf68
commit
bade1a1a32
1 changed files with 1 additions and 1 deletions
|
@ -88,6 +88,6 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def undefined_agents
|
||||
agents.where(type: undefined_agent_types).select('id, schedule, type as undefined')
|
||||
agents.where(type: undefined_agent_types).select('id, schedule, events_count, type as undefined')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue