From 25ba321953b8994673120a19836c946f1affe214 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Thu, 5 Dec 2024 10:36:18 -0500 Subject: [PATCH] Return unauthorized if recording ready call fails (#5972) --- 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