From c71d446d1367d90c589b43a5cfde43a6df06b06f Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Wed, 4 Dec 2024 16:06:03 -0500 Subject: [PATCH] Return unauthorized if recording ready call fails --- app/controllers/external_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/external_controller.rb b/app/controllers/external_controller.rb index 702fd8633a..8b512663b1 100644 --- a/app/controllers/external_controller.rb +++ b/app/controllers/external_controller.rb @@ -113,6 +113,8 @@ def recording_ready RecordingCreator.new(recording:, first_creation: true).call render json: {}, status: :ok + rescue JWT::DecodeError + render json: {}, status: :unauthorized end # GET /meeting_ended