mirror of
https://github.com/discourse/discourse.git
synced 2026-03-03 23:54:20 +08:00
13 lines
298 B
Ruby
13 lines
298 B
Ruby
# frozen_string_literal: true
|
|
|
|
Fabricator(:topic_timer) do
|
|
user
|
|
topic
|
|
execute_at { 1.hour.from_now }
|
|
status_type TopicTimer.types[:close]
|
|
end
|
|
|
|
Fabricator(:topic_timer_close_based_on_last_post, from: :topic_timer) do
|
|
based_on_last_post { true }
|
|
duration_minutes { 2.days.to_i / 60 }
|
|
end
|