Skip to content

Commit

Permalink
Fix issue with recordings resync when no recordings are returned (#5538)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Nov 20, 2023
1 parent 265ce2d commit 233d836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/server_recordings_sync.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 233d836

Please sign in to comment.