diff --git a/app/models/bot/alegre.rb b/app/models/bot/alegre.rb index e2b9b393b..43abff02e 100644 --- a/app/models/bot/alegre.rb +++ b/app/models/bot/alegre.rb @@ -153,10 +153,10 @@ def self.run(body) Rails.logger.info("[Alegre Bot] [ProjectMedia ##{pm.id}] This item was just created, processing...") self.get_language(pm) if ['audio', 'image', 'video'].include?(self.get_pm_type(pm)) - self.relate_project_media_async(pm) + self.relate_project_media_async(pm) if self.media_file_url(pm) else - self.relate_project_media_async(pm, 'original_title') - self.relate_project_media_async(pm, 'original_description') + self.relate_project_media_async(pm, 'original_title') if pm.original_title + self.relate_project_media_async(pm, 'original_description') if pm.original_description end self.get_extracted_text(pm) self.get_flags(pm)