diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index df578657f..03d18850e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -20,6 +20,7 @@ <%= stylesheet_pack_tag 'application', media: 'all' %> <%= render 'shared/posthog' if ENV['POSTHOG_TOKEN'] %> <%= render 'shared/plausible' if !signed_in? && ENV['PLAUSIBLE_DOMAIN'] %> + <%= render 'shared/pendo' if ENV['PENDO_API_KEY'] %> diff --git a/app/views/shared/_pendo.html.erb b/app/views/shared/_pendo.html.erb new file mode 100644 index 000000000..7f6e68447 --- /dev/null +++ b/app/views/shared/_pendo.html.erb @@ -0,0 +1,17 @@ + diff --git a/lib/templates/process_document.rb b/lib/templates/process_document.rb index 92988e991..687ccd082 100644 --- a/lib/templates/process_document.rb +++ b/lib/templates/process_document.rb @@ -94,7 +94,7 @@ def generate_pdf_preview_images(attachment, data, pdf = nil) attachment.save! end - generate_document_preview_images(attachment, data, (0..number_of_pages - 1)) + generate_document_preview_images(attachment, data, 0..number_of_pages - 1) end def generate_document_preview_images(attachment, data, range, concurrency: CONCURRENCY) @@ -196,6 +196,5 @@ def normalize_attachment_fields(template, attachments = template.documents) pdf_fields end end - end end