Skip to content
Snippets Groups Projects
Commit 428e204b authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix score_calculator_worker class verification

parent b11fdd54
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ class ScoreCalculatorWorker ...@@ -3,7 +3,7 @@ class ScoreCalculatorWorker
sidekiq_options queue: :score sidekiq_options queue: :score
def perform(id, object_class) def perform(id, object_class)
return false unless %w(User LearningObject Collection) return false unless %w(User LearningObject Collection).include? object_class
object = object_class.constantize.find(id) object = object_class.constantize.find(id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment