Task me sync

This commit is contained in:
Senad Uka
2020-06-03 07:24:01 +02:00
parent e3d4d22a34
commit 88836e937e
76 changed files with 847 additions and 497 deletions

View File

@@ -13,11 +13,8 @@ class ZoomNotificationsController < ApplicationController
@zoom_meeting.started!
when 'meeting.ended'
@zoom_meeting.ended!
when 'recording.completed'
recording = notification.dig(:payload, :object, :recording_files).first
AttachRecordingToZoomMeetingJob.perform_later(@zoom_meeting, recording, notification['download_token'])
else
Rails.logger.info notification_event
Rails.logger.info notification_type
Rails.logger.info notification
end
@@ -26,20 +23,16 @@ class ZoomNotificationsController < ApplicationController
private
def notification
params.to_unsafe_h
end
def notification_event
notification.dig(:event)
params.dig(:event)
end
def notification_meeting_id
notification.dig(:payload, :object, :id)
params.dig(:payload, :object, :id)
end
def notification_host_id
notification.dig(:payload, :object, :host_id)
params.dig(:payload, :object, :host_id)
end
def set_zoom_meeting