Merge pull request #15195 from GuiLeme/issue-15160

(fix) - Fixed error logs in recordings about etherpad
This commit is contained in:
Anton Georgiev 2022-06-16 14:31:52 -04:00 committed by GitHub
commit acf201c544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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