Skip to content
Snippets Groups Projects
Commit 5f588a08 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

...

parent 668c1f86
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ class V1::ComplaintsController < ApplicationController ...@@ -39,7 +39,7 @@ class V1::ComplaintsController < ApplicationController
ComplaintsMailer.new_complaint_received(@complaint, @current_user).deliver_now ComplaintsMailer.new_complaint_received(@complaint, @current_user).deliver_now
render json: @complaint, status: :created render json: @complaint, status: :created
else else
render json: complaint.errors, status: :unprocessable_entity render json: @complaint.errors, status: :unprocessable_entity
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment