Skip to content

Commit

Permalink
do not send email notification when submissions are archived
Browse files Browse the repository at this point in the history
reapply fix for #190 f0d101b
  • Loading branch information
alexskr committed May 9, 2024
1 parent bfdfe7a commit d25ce99
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ def process_submission(logger, options = {})
end

def notify_submission_processed(logger)
begin
LinkedData::Utils::Notifications.submission_processed(@submission) unless archive
rescue StandardError => e
logger.error("Email sending failed: #{e.message}\n#{e.backtrace.join("\n\t")}"); logger.flush
end
LinkedData::Utils::Notifications.submission_processed(@submission) unless @submission.archived?
rescue StandardError => e
logger.error("Email sending failed: #{e.message}\n#{e.backtrace.join("\n\t")}"); logger.flush
end

def get_options(options)
Expand Down

0 comments on commit d25ce99

Please sign in to comment.