Skip to content

Commit

Permalink
fix slack message syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 5, 2021
1 parent 712bab3 commit 2cab3f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def self.export_doi_counts(query: nil)
if rows.blank?
message = "Found 0 repositories with DOIs not indexed."
Rails.logger.warn message
self.send_notification_to_slack(title + ": " + message, level: "good")
self.send_notification_to_slack(message, title: title + ": DOIs in Elasticsearch", level: "good")
return nil
end

Expand All @@ -726,7 +726,7 @@ def self.export_doi_counts(query: nil)

message = "Found #{csv.size - 1} repositories with #{total_missing} DOIs not indexed."
Rails.logger.warn message
self.send_notification_to_slack(title + ": " + message, level: "warning")
self.send_notification_to_slack(message, title: title + ": DOIs in Elasticsearch", level: "warning")

csv.join("")
end
Expand Down

0 comments on commit 2cab3f3

Please sign in to comment.