From 3b78407b79f52ed5592bf1a402a4e52a218460f4 Mon Sep 17 00:00:00 2001 From: Reid Hewitt Date: Tue, 23 Apr 2024 16:19:52 -0600 Subject: [PATCH] update transformation response status. --- app/controllers/translates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/translates_controller.rb b/app/controllers/translates_controller.rb index 4be72b9..c42704a 100644 --- a/app/controllers/translates_controller.rb +++ b/app/controllers/translates_controller.rb @@ -70,6 +70,6 @@ def create @response_info[:success] = false unless @md_return[:readerExecutionPass] @response_info[:success] = false unless @md_return[:writerPass] - render json: @response_info + render json: @response_info, status: @response_info[:success] ? 200 : 422 end end