fix pdf upload

pull/402/merge
Pete Matsyburka 7 months ago
parent 2a74fdd095
commit 0e5e0e7772

@ -85,6 +85,8 @@ module Templates
end
Concurrent::Promise.zip(*promises).value!.each do |blob|
next unless blob
ApplicationRecord.no_touching do
ActiveStorage::Attachment.create!(
blob:,
@ -114,6 +116,10 @@ module Templates
blob.upload(io)
blob
rescue Vips::Error => e
Rollbar.warning(e) if defined?(Rollbar)
nil
end
def maybe_flatten_form(data, pdf)

Loading…
Cancel
Save