diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/salmon_controller.rb | 10 | ||||
-rw-r--r-- | app/controllers/auth/registrations_controller.rb | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/controllers/api/salmon_controller.rb b/app/controllers/api/salmon_controller.rb index 8bd653d7d..c0ba32ff2 100644 --- a/app/controllers/api/salmon_controller.rb +++ b/app/controllers/api/salmon_controller.rb @@ -3,8 +3,14 @@ class Api::SalmonController < ApiController respond_to :txt def update - ProcessInteractionService.new.call(request.body.read, @account) - head 201 + body = request.body.read + + if body.nil? + head 200 + else + ProcessInteractionService.new.call(body, @account) + head 201 + end end private diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 71eb0905e..7b7f6b52d 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -17,6 +17,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController end def after_sign_up_path_for(_resource) - root_path + new_user_session_path end end |