diff --git a/app/models/topic.rb b/app/models/topic.rb index 80c8b492f71..8dbf4be70a8 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -998,6 +998,7 @@ SQL options = { status_type: status_type } options.merge!(user: by_user) unless TopicTimer.public_types[status_type] self.topic_timers.find_by(options)&.trash!(by_user) + nil end # Valid arguments for the time: