Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad committed Oct 30, 2023
1 parent c135ff8 commit a9adbd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/server_recordings_sync.rake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ task :server_recordings_sync, %i[provider] => :environment do |_task, args|
recordings = BigBlueButtonApi.new(provider: args[:provider]).get_recordings(meeting_ids:)

# Skip the entire batch if the first and last recordings exist
next if Recording.exists?(record_id: recordings[:recordings][0][:recordID]) && Recording.exists?(record_id: recordings[:recordings][-1][:recordID])
if Recording.exists?(record_id: recordings[:recordings][0][:recordID]) && Recording.exists?(record_id: recordings[:recordings][-1][:recordID])
next
end

recordings[:recordings].each do |recording|
next if Recording.exists?(record_id: recording[:recordID])
Expand Down

0 comments on commit a9adbd0

Please sign in to comment.