[issue-15160] - fixed error logs in recordings

This commit is contained in:
GuiLeme 2022-06-16 09:13:31 -03:00
parent 4d10ca90b8
commit 7363c36448

View File

@ -54,7 +54,10 @@ def archive_notes(meeting_id, notes_endpoint, notes_formats, raw_archive_dir)
FileUtils.mkdir_p(notes_dir)
tmp_note = "#{notes_dir}/tmp_note.txt"
BigBlueButton.try_download("#{notes_endpoint}/#{CGI.escape notes_id}/export/txt", tmp_note)
base_path_notes = CGI.escape notes_id
if base_path_notes != "undefined"
BigBlueButton.try_download("#{notes_endpoint}/#{base_path_notes}/export/txt", tmp_note)
end
if File.exist? tmp_note
# If the notes are empty, do not archive them
blank = false