Don't auto-close a topic too soon in PeriodicalUpdates
This commit is contained in:
parent
eeed9abcf0
commit
c0e1ef75f6
|
@ -629,7 +629,7 @@ class Topic < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.auto_close
|
def self.auto_close
|
||||||
Topic.where("NOT closed AND auto_close_at < ? AND auto_close_user_id IS NOT NULL", 5.minutes.from_now).each do |t|
|
Topic.where("NOT closed AND auto_close_at < ? AND auto_close_user_id IS NOT NULL", 1.minute.ago).each do |t|
|
||||||
t.auto_close
|
t.auto_close
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue