Skip to content

Commit 51ff7df

Browse files
committed
Fixing error email formatting
1 parent d974fd8 commit 51ff7df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/mailers/single_cell_mailer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,11 @@ def duos_error(study, error, action)
313313
@study = study
314314
@action = action
315315
client = DuosClient.new
316-
error_content = error.try(:body) || error.try(:respons_body) || error.try(:reason_phrase) || error.try(:message) || error.to_s
316+
error_content = error.try(:body) || error.try(:response_body) || error.try(:reason_phrase) || error.try(:message) || error.to_s
317317
@error_message = client.parse_response_body(error_content)
318318
mail(to: AdminConfiguration.qa_emails,
319319
subject: "[Single Cell Portal Admin Notification] DUOS #{action} error for #{@study.accession}") do |format|
320-
format.html { render layout: 'duos_error' }
320+
format.html { render layout: 'nightly_admin_report' }
321321
end
322322
end
323323
end
File renamed without changes.

0 commit comments

Comments
 (0)