Fix CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-11-12 13:38:09 +02:00
parent 64d35a864f
commit c42c482d64
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -26,11 +26,9 @@ module Api
return
end
render json: {
domain_name: @domain.name,
render json: { domain_name: @domain.name,
current_registrant: serialized_registrant(current_registrant),
status: params[:decision],
}
status: params[:decision] }
end
private
@ -96,12 +94,14 @@ module Api
end
def verify_action
if params[:template] == 'change'
return true if @domain.registrant_update_confirmable?(verify_params[:token])
action = if params[:template] == 'change'
@domain.registrant_update_confirmable?(verify_params[:token])
elsif params[:template] == 'delete'
return true if @domain.registrant_delete_confirmable?(verify_params[:token])
@domain.registrant_delete_confirmable?(verify_params[:token])
end
return unless action
render json: { error: 'Application expired or not found' }, status: :unauthorized
end
end