mirror of
https://github.com/discourse/discourse.git
synced 2025-06-22 02:31:48 +08:00
PERF: correctly use preloaded association (#32814)
This commit is contained in:
@ -21,7 +21,7 @@ module DiscourseAutomation
|
||||
end
|
||||
|
||||
def include_next_pending_automation_at?
|
||||
object.pending_automations.exists?
|
||||
object.pending_automations.present?
|
||||
end
|
||||
|
||||
def next_pending_automation_at
|
||||
|
Reference in New Issue
Block a user