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

Fix issue with recording resync deleting recordings (#5449)

parent 16b89223
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ class RecordingCreator
length = 0
if recording[:playback][:format].is_a?(Array)
recording[:playback][:format].each do |formats|
length = formats[:length] if formats[:type] == 'presentation'
length = formats[:length] if formats[:type] == 'presentation' || formats[:type] == 'video'
end
else
length = recording[:playback][:format][:length]
......
......@@ -23,7 +23,9 @@ class RecordingsSync
end
def call
@room.recordings.destroy_all
recordings = @room.recordings
Format.where(recordings:).delete_all
recordings.delete_all
recordings = BigBlueButtonApi.new(provider: @provider).get_recordings(meeting_ids: @room.meeting_id)
recordings[:recordings].each do |recording|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment