add temp fix for recording length in milliseconds

This commit is contained in:
Josh 2017-09-14 16:14:47 -04:00
parent fbc8a56fc0
commit 40ee86a6a4
1 changed files with 3 additions and 1 deletions

View File

@ -224,7 +224,9 @@ class @Recordings
table_api.column(COLUMN.ACTION).visible(false)
table_api.column(COLUMN.VISIBILITY).visible(false)
for recording in data.recordings
recording.duration = recording.length
# NOTE: Temporary fix for the minutes to milliseconds bug some recordings may have
# experienced when transitioning from BigBlueButton 1.1 to BigBlueButton 2.0.
recording.duration = if recording.duration < 1000 then recording.duration else parseInt(recording.length / 60000)
data.recordings.sort (a,b) ->
return new Date(b.start_time) - new Date(a.start_time)
table_api.clear()