From c1ce2bec00943beb96cd8b1e58d6161f1ee3e1f6 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 23 Oct 2024 10:44:55 +0300 Subject: [PATCH] fix update name --- app/controllers/api/submitters_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/submitters_controller.rb b/app/controllers/api/submitters_controller.rb index e9fc496b..210b783d 100644 --- a/app/controllers/api/submitters_controller.rb +++ b/app/controllers/api/submitters_controller.rb @@ -120,6 +120,7 @@ module Api end&.dig('uuid') submitter.email = Submissions.normalize_email(attrs[:email]) if attrs.key?(:email) + submitter.name = attrs[:name] if attrs.key?(:name) if attrs.key?(:phone) submitter.phone = attrs[:phone].to_s.gsub(/[^0-9+]/, '')