From 747a2e5167d10563eec7ca296fdab7e966056796 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Wed, 9 Oct 2019 15:56:55 -0300 Subject: [PATCH] DEV: Remove old backward-compatibility code --- plugin.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin.rb b/plugin.rb index fa7fdba..affceab 100644 --- a/plugin.rb +++ b/plugin.rb @@ -59,12 +59,7 @@ after_initialize do p.user_id IS NOT NULL SQL - # TODO post discourse 2.1 remove - if defined? DB - DB.exec(sql, solved: UserAction::SOLVED) - else - UserAction.exec_sql(sql, solved: UserAction::SOLVED) - end + DB.exec(sql, solved: UserAction::SOLVED) end $redis.set("solved_already_upgraded", "true") end