diff --git a/plugin.rb b/plugin.rb index a26ab17..f904b83 100644 --- a/plugin.rb +++ b/plugin.rb @@ -29,7 +29,7 @@ after_initialize do # we got to do a one time upgrade if !skip_db && defined?(UserAction::SOLVED) - unless $redis.get('solved_already_upgraded') + unless Discourse.redis.get('solved_already_upgraded') unless UserAction.where(action_type: UserAction::SOLVED).exists? Rails.logger.info("Upgrading storage for solved") sql = <