Skip to content

Commit

Permalink
Add extra notifications in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Aug 10, 2023
1 parent 4bb9d86 commit 84eb840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/orcasite/notifications/email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Orcasite.Notifications.Email do
|> to({name, email})
|> from({"Orcasound", "info@orcasound.net"})
|> subject(
"New detection at #{node_name}#{if params.notifications_since_count > 0, do: " [#{params.notifications_since_count} since last]", else: ""}"
"New detection at #{node_name}#{if params.notifications_since_count > 0, do: " [+#{params.notifications_since_count}]", else: ""}"
)
|> html_body(mjml_new_detection_body(params |> Map.put(:node_name, node_name)))
end
Expand Down

0 comments on commit 84eb840

Please sign in to comment.