Verified Commit c613b505 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

do not send a useless json respond back, as it is not used on the client side anyway

parent 1b4cd803
......@@ -82,7 +82,7 @@ class VolunteersController < ApplicationController
def update_waive_and_iban
authorize @volunteer
@volunteer.update(volunteer_params)
respond_to :json
render json: nil, status: :ok
end
def terminate
......
json.volunteer do
json.id @volunteer.id
json.waive @volunteer.waive
json.iban @volunteer.iban
json.bank @volunteer.bank
json.errors @volunteer.errors&.messages
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment