send docs copy only if email present

This commit is contained in:
Alex Turchyn committed 2023-09-09 14:00:14 +03:00
1 parent 6eecd3afa4
commit baad784818
1 file changed
+1 -1
+1 -1
View File
@@ -27,6 +27,6 @@ class ProcessSubmitterCompletionJob < ApplicationJob
to = submitter.submission.submitters.order(:completed_at).select(&:email?).map(&:friendly_name).join(', ')
SubmitterMailer.documents_copy_email(submitter, to:).deliver_later!
SubmitterMailer.documents_copy_email(submitter, to:).deliver_later! if to.present?
end
end