handle webhook request for unknown broadcast #33

Closed
bilal.catic wants to merge 2 commits from gracefully-handle-webhooks-for-unknown-broadcast into master
Showing only changes of commit 848c02d88f - Show all commits

View File

@@ -65,6 +65,10 @@ class StreamNotificationsController < ApplicationController
@broadcast = Broadcast.find_by(stream_uid: notification_object_id)
end
if @broadcast.nil?
logger.info "Ignoring broadcast from other environment. Type = #{notification_type}. Id = #{live_stream_id} / #{notification_object_id}"
head :ok
end
head :ok if @broadcast.nil?
end