update recording notification email

This commit is contained in:
Zachary Chai
2017-02-22 12:13:33 -05:00
parent 80374e02a5
commit ebc52d2271
6 changed files with 55 additions and 8 deletions

View File

@ -215,7 +215,7 @@ class BbbController < ApplicationController
# send an email to the owner of this recording, if defined
if Rails.configuration.mail_notifications
owner = User.find_by(encrypted_id: room_id)
RecordingReadyEmailJob.perform_later(owner) if owner.present?
RecordingReadyEmailJob.perform_later(owner, parse_recording_for_view(rec_info)) if owner.present?
end
# TODO: remove the webhook now that the meeting and recording are done