From d28c184d3f4a471366be6d72c2df04fe39ae2922 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Fri, 13 Dec 2024 14:20:15 -0800 Subject: [PATCH] CV2-5789 dont send null values out to presto from check-api --- app/models/bot/alegre.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)