Skip to content
Snippets Groups Projects
Commit befcf6bd authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fix LearningObject.updated_at error

parent cda787c6
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ class ScoreCalculatorWorker
score = calculator.calculate
object.update(score: score) if score.is_a? Float
object.update_columns(score: score) if score.is_a? Float
object.update(user_category_id: calculator.category_by_reputation) if object_class == "User"
object.update_columns(user_category_id: calculator.category_by_reputation) if object_class == "User"
end
end
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