pull/250/head
Pete Matsyburka 2 years ago
parent 1a720cf1ad
commit cf98616a27

@ -128,10 +128,6 @@ module Submissions
uuid = attrs[:uuid].presence uuid = attrs[:uuid].presence
uuid ||= template.submitters.find { |e| e['name'].to_s.casecmp(attrs[:role].to_s).zero? }&.dig('uuid') uuid ||= template.submitters.find { |e| e['name'].to_s.casecmp(attrs[:role].to_s).zero? }&.dig('uuid')
if attrs[:role].present? && uuid.blank? && defined?(Rollbar)
Rollbar.error("Role doesn't existng: #{attrs[:role]}, #{template.id}")
end
uuid || template.submitters[index]&.dig('uuid') uuid || template.submitters[index]&.dig('uuid')
end end

Loading…
Cancel
Save