Skip to content

Commit

Permalink
fix archived submission notification email shows failure in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
alexskr committed Feb 6, 2024
1 parent 247fb4d commit 602a44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/utils/notifications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.submission_processed(submission)
submission.bring_remaining
ontology = submission.ontology
ontology.bring(:name, :acronym)
result = submission.ready? ? 'Success' : 'Failure'
result = submission.ready? || submission.archived? ? 'Success' : 'Failure'
status = LinkedData::Models::SubmissionStatus.readable_statuses(submission.submissionStatus)

subject = "[#{LinkedData.settings.ui_name}] #{ontology.name} Parsing #{result}"
Expand Down

0 comments on commit 602a44c

Please sign in to comment.