mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: Can't update status_type of topic timers.
https://meta.discourse.org/t/topic-timers-internal-error-500/64805
This commit is contained in:
@ -260,7 +260,8 @@ RSpec.describe TopicTimer, type: :model do
|
||||
open_topic_timer = Fabricate(:topic_timer,
|
||||
status_type: described_class.types[:open],
|
||||
execute_at: Time.zone.now - 1.hour,
|
||||
created_at: Time.zone.now - 2.hour
|
||||
created_at: Time.zone.now - 2.hour,
|
||||
topic: Fabricate(:topic, closed: true)
|
||||
)
|
||||
|
||||
Fabricate(:topic_timer)
|
||||
|
Reference in New Issue
Block a user