fix update name

This commit is contained in:
Pete Matsyburka
2024-10-23 10:44:55 +03:00
parent 3d2046f227
commit c1ce2bec00
@@ -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+]/, '')