Commit 13fbec68 authored by Marina Cassiolli's avatar Marina Cassiolli

Fix evaluation system

parent 07696878
Pipeline #12368387 failed with stage
in 16 minutes and 2 seconds
......@@ -14,7 +14,7 @@ class EvaluationSystem
def self.content_json_for_evaluation(content)
media_type = content.media_type
if media_type == "video"
if media_type == "video" and content.encoded_contents.present?
json_content = content.as_json(only: [:id, :title, :soundtrack, :evaluation_state, :judge_rating, :created_at],
methods: [:description, :evaluation_state, :judge_rating],
include: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment