Skip to content
Snippets Groups Projects
Unverified Commit 233d836e authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fix issue with recordings resync when no recordings are returned (#5538)

parent 265ce2d8
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@ task :server_recordings_sync, %i[provider] => :environment do |_task, args|
recordings = BigBlueButtonApi.new(provider: args[:provider]).get_recordings(meeting_ids:)
next if recordings[:recordings].blank?
# Skip the entire batch if the first and last recordings exist
if Recording.exists?(record_id: recordings[:recordings][0][:recordID]) && Recording.exists?(record_id: recordings[:recordings][-1][:recordID])
next
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment