DEV: Remove old backward-compatibility code

This commit is contained in:
romanrizzi 2019-10-09 15:56:55 -03:00
parent c630c14d6c
commit 747a2e5167
1 changed files with 1 additions and 6 deletions

View File

@ -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