move to new db exec pattern

This commit is contained in:
Sam 2018-06-21 12:23:50 +10:00
parent 65a97686f3
commit 9aeb9df26f
1 changed files with 6 additions and 1 deletions

View File

@ -44,8 +44,13 @@ 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
end
$redis.set("solved_already_upgraded", "true")
end
end