From 803e4e7a002a97ddf5e0d0db42a5e96bd2881c7a Mon Sep 17 00:00:00 2001 From: John Manuel Derecho Date: Thu, 23 May 2024 00:04:53 +0800 Subject: [PATCH] webflow dynamic recipient --- lib/digitaltolk/webflow_service.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/digitaltolk/webflow_service.rb b/lib/digitaltolk/webflow_service.rb index c68d8a5d84449..ac46ff18b4ff4 100644 --- a/lib/digitaltolk/webflow_service.rb +++ b/lib/digitaltolk/webflow_service.rb @@ -1,8 +1,6 @@ class Digitaltolk::WebflowService attr_accessor :params - INFO_EMAIL = 'info@digitaltolk.se'.freeze - def initialize(params) @params = params end @@ -38,7 +36,7 @@ def process_webflow_submission end def emails - [INFO_EMAIL] + form_data['recipients'].to_s.split(',') end def webflow_params