fix webhook serializer

This commit is contained in:
Alex Turchyn
2023-09-05 01:09:46 +03:00
parent c38830dd1c
commit e7c5f14860
+1 -1
View File
@@ -45,7 +45,7 @@ module Submitters
if field['type'].in?(%w[image signature])
rails_storage_proxy_url(attachments_index[value])
elsif field['type'] == 'file'
Array.wrap(value).compact_blank.filter_map { |e| rails_storage_proxy_url(e) }
Array.wrap(value).compact_blank.filter_map { |e| rails_storage_proxy_url(attachments_index[e]) }
else
value
end