From 29a9e0c4d214d4bb4624bcfd4b1eae38bfbc568a Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 22 Aug 2017 15:52:16 +0900 Subject: [PATCH] Fix the build. --- app/models/topic.rb | 1 + 1 file changed, 1 insertion(+) 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: