From d52c7721383f98bb56e9a6128a29f6029fc6c41a Mon Sep 17 00:00:00 2001 From: Matthew Rider Date: Thu, 10 Oct 2024 09:45:45 +0200 Subject: [PATCH] Fix unknown local variable --- .../whats_app/three_sixty_dialog_webhook_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/whats_app/three_sixty_dialog_webhook_controller.rb b/app/controllers/whats_app/three_sixty_dialog_webhook_controller.rb index bdd337d38..917fc6161 100644 --- a/app/controllers/whats_app/three_sixty_dialog_webhook_controller.rb +++ b/app/controllers/whats_app/three_sixty_dialog_webhook_controller.rb @@ -17,7 +17,7 @@ def message def create_api_key channel_ids = create_api_key_params[:channels].split('[').last.split(']').last.split(',') client_id = create_api_key_params[:client] - organization.update!(three_sixty_dialog_client_id: client_id) + @organization.update!(three_sixty_dialog_client_id: client_id) channel_ids.each do |channel_id| WhatsAppAdapter::CreateApiKey.perform_later(organization_id: @organization.id, channel_id: channel_id) end