FIX: use the new duration attribute in `set_or_create_timer` method.

aad12822b7
This commit is contained in:
Vinoth Kannan 2020-03-19 22:53:17 +05:30
parent 8d883fba93
commit 329d8aff30
1 changed files with 3 additions and 2 deletions

View File

@ -125,8 +125,9 @@ SQL
if (auto_close_hours > 0) && !topic.closed
topic_timer = topic.set_or_create_timer(
TopicTimer.types[:close],
auto_close_hours,
based_on_last_post: true
nil,
based_on_last_post: true,
duration: auto_close_hours
)
topic.custom_fields[