Browse Source

Reuse the how to fix template for check soft validations email

pull/1615/head
Kat 3 years ago
parent
commit
dc840ab03f
  1. 2
      app/mailers/bulk_upload_mailer.rb

2
app/mailers/bulk_upload_mailer.rb

@ -6,7 +6,7 @@ class BulkUploadMailer < NotifyMailer
FAILED_FILE_SETUP_ERROR_TEMPLATE_ID = "24c9f4c7-96ad-470a-ba31-eb51b7cbafd9".freeze FAILED_FILE_SETUP_ERROR_TEMPLATE_ID = "24c9f4c7-96ad-470a-ba31-eb51b7cbafd9".freeze
FAILED_SERVICE_ERROR_TEMPLATE_ID = "c3f6288c-7a74-4e77-99ee-6c4a0f6e125a".freeze FAILED_SERVICE_ERROR_TEMPLATE_ID = "c3f6288c-7a74-4e77-99ee-6c4a0f6e125a".freeze
HOW_FIX_UPLOAD_TEMPLATE_ID = "21a07b26-f625-4846-9f4d-39e30937aa24".freeze HOW_FIX_UPLOAD_TEMPLATE_ID = "21a07b26-f625-4846-9f4d-39e30937aa24".freeze
CHECK_SOFT_VALIDATIONS_TEMPLATE_ID = "123".freeze CHECK_SOFT_VALIDATIONS_TEMPLATE_ID = "21a07b26-f625-4846-9f4d-39e30937aa24".freeze
def send_how_fix_upload_mail(bulk_upload:) def send_how_fix_upload_mail(bulk_upload:)
title = "We found #{pluralize(bulk_upload.bulk_upload_errors.count, 'error')} in your bulk upload" title = "We found #{pluralize(bulk_upload.bulk_upload_errors.count, 'error')} in your bulk upload"

Loading…
Cancel
Save