Merge pull request #6864 from kepstin/rec-event-sort

Recording events archiver: fix syntax errors
This commit is contained in:
Fred Dixon 2019-02-25 17:57:26 -05:00 committed by GitHub
commit 45c228d2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,7 @@ module BigBlueButton
# in the file, find the correct spot (it's usually no more than 1 or 2 off).
# Make sure not to change the relative order of two events with the same timestamp.
previous_event = recording.last_element_child
while prev_event.name == 'event' && prev_event['timestamp'].to_i > event['timestamp'].to_i
while previous_event.name == 'event' && previous_event['timestamp'].to_i > event['timestamp'].to_i
previous_event = previous_event.previous_element
end
previous_event.add_next_sibling(event)