Skip to content

Commit

Permalink
update transformation response status.
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Apr 23, 2024
1 parent 7f40038 commit 3b78407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/translates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b78407

Please sign in to comment.