mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't run job if topic timer has already been deleted.
This commit is contained in:
@@ -2,7 +2,7 @@ module Jobs
|
||||
class PublishTopicToCategory < Jobs::Base
|
||||
def execute(args)
|
||||
topic_timer = TopicTimer.find_by(id: args[:topic_timer_id] || args[:topic_status_update_id])
|
||||
raise Discourse::InvalidParameters.new(:topic_timer_id) if topic_timer.blank?
|
||||
return if topic_timer.blank?
|
||||
|
||||
topic = topic_timer.topic
|
||||
return if topic.blank?
|
||||
|
||||
Reference in New Issue
Block a user