From 7dea6a23f7989c1c1693d29f0e0813213173e0f2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 18 Nov 2016 23:24:57 +0100 Subject: Move Salmon processing to background as well as PuSH --- app/controllers/api/salmon_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api') diff --git a/app/controllers/api/salmon_controller.rb b/app/controllers/api/salmon_controller.rb index 01862a900..a7872d542 100644 --- a/app/controllers/api/salmon_controller.rb +++ b/app/controllers/api/salmon_controller.rb @@ -10,7 +10,7 @@ class Api::SalmonController < ApiController if body.nil? head 200 else - ProcessInteractionService.new.call(body, @account) + SalmonWorker.perform_async(@account.id, body.force_encoding('UTF-8')) head 201 end end -- cgit