1
0
mirror of synced 2026-08-05 17:56:58 +00:00

FIX: use the new duration attribute in set_or_create_timer method.

https://github.com/discourse/discourse/commit/aad12822b7d7c9c6ecd976e23d3a83626c052dce
This commit is contained in:
Vinoth Kannan
2020-03-19 22:53:17 +05:30
parent 8d883fba93
commit 329d8aff30
+3 -2
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[