mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
use of_type
This commit is contained in:
parent
34b56885c8
commit
9a17bc68b9
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def outdated_google_auth_check
|
||||
@outdated_google_cal_agents = current_user.agents.where("type like 'Agents::GoogleCalendarPublishAgent'").select do |agent|
|
||||
@outdated_google_cal_agents = current_user.agents.of_type('Agents::GoogleCalendarPublishAgent').select do |agent|
|
||||
agent.options['google']['key_secret'].present?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue