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