From a9adbd0e40588aad6bf19332dac198550324a5b7 Mon Sep 17 00:00:00 2001 From: farhatahmad Date: Mon, 30 Oct 2023 14:57:35 -0400 Subject: [PATCH] Rubocop --- lib/tasks/server_recordings_sync.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/server_recordings_sync.rake b/lib/tasks/server_recordings_sync.rake index 7f84971301..c74260742d 100644 --- a/lib/tasks/server_recordings_sync.rake +++ b/lib/tasks/server_recordings_sync.rake @@ -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])