fix error

This commit is contained in:
邱博亞 2021-12-05 10:58:25 +08:00
parent 4c523b4168
commit 8908ac1617
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Rails.application.routes.draw do Rails.application.routes.draw do
if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console') if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined?('Console')
Bulletin
Thread.new do Thread.new do
BulletinFeedCache.regenerate_all BulletinFeedCache.regenerate_all
end end