fix recording delete not sending notification

This commit is contained in:
Zachary Chai
2017-02-28 10:38:57 -05:00
parent 059a56e5a6
commit a72656465b
3 changed files with 11 additions and 23 deletions

View File

@ -159,9 +159,10 @@ class BbbController < ApplicationController
# DELETE /rooms/:id/recordings/:record_id
# DELETE /rooms/:room_id/:id/recordings/:record_id
def delete_recordings
recording = bbb_get_recordings({recordID: params[:record_id]})[:recordings].first
bbb_res = bbb_delete_recordings(params[:record_id])
if bbb_res[:returncode]
RecordingDeletesJob.perform_later(@user.encrypted_id, params[:record_id], params[:id])
RecordingDeletesJob.perform_later(@user.encrypted_id, params[:record_id], recording[:metadata][:"meeting-name"])
end
render_bbb_response bbb_res
end