mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-05 13:22:11 +00:00
DEV: Remove old backward-compatibility code
This commit is contained in:
parent
c630c14d6c
commit
747a2e5167
@ -59,12 +59,7 @@ after_initialize do
|
|||||||
p.user_id IS NOT NULL
|
p.user_id IS NOT NULL
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
# TODO post discourse 2.1 remove
|
DB.exec(sql, solved: UserAction::SOLVED)
|
||||||
if defined? DB
|
|
||||||
DB.exec(sql, solved: UserAction::SOLVED)
|
|
||||||
else
|
|
||||||
UserAction.exec_sql(sql, solved: UserAction::SOLVED)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
$redis.set("solved_already_upgraded", "true")
|
$redis.set("solved_already_upgraded", "true")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user