mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: ensures we don't exit without pending automations (#26771)
This case is not supposed to happen but it seems safer to ensure this case will recreate pending automations.
This commit is contained in:
@ -31,7 +31,7 @@ module DiscourseAutomation
|
||||
if previous_start_date != start_date || previous_interval != interval ||
|
||||
previous_frequency != frequency
|
||||
automation.pending_automations.destroy_all
|
||||
else
|
||||
elsif automation.pending_automations.present?
|
||||
return
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user