From c722b94a97b9710b9e43b40cd879c0af605085bd Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Fri, 5 Feb 2021 15:33:09 +1000 Subject: [PATCH] FIX: Update set_or_create_topic_timer to use duration_minutes keyword See https://github.com/discourse/discourse/pull/11961 --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 4cdbd15..7dcc639 100644 --- a/plugin.rb +++ b/plugin.rb @@ -142,7 +142,7 @@ SQL TopicTimer.types[:silent_close] || TopicTimer.types[:close], nil, based_on_last_post: true, - duration: auto_close_hours + duration_minutes: auto_close_hours * 60 ) topic.custom_fields[