Fixed wrong TX url in email notifications for mainnet (#7951)

* Fixed wrong TX url in email notifications for mainnet

* changelog
pull/7954/head
Andrey Atapin 1 year ago committed by GitHub
parent 10f7fff0bb
commit 494b89fdec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 6
      apps/explorer/lib/explorer/account/notifier/email.ex

@ -24,6 +24,7 @@
- [#7843](https://github.com/blockscout/blockscout/pull/7843) - Fix created_contract_code_indexed_at updating
- [#7855](https://github.com/blockscout/blockscout/pull/7855) - Handle internal transactions unique_violation
- [#7899](https://github.com/blockscout/blockscout/pull/7899) - Fix catchup numbers_to_ranges function
- [#7951](https://github.com/blockscout/blockscout/pull/7951) - Fix TX url in email notifications on mainnet
### Chore

@ -134,11 +134,7 @@ defmodule Explorer.Account.Notifier.Email do
end
defp host do
if System.get_env("MIX_ENV") == "prod" do
"blockscout.com"
else
Application.get_env(:block_scout_web, BlockScoutWeb.Endpoint)[:url][:host]
end
Application.get_env(:block_scout_web, BlockScoutWeb.Endpoint)[:url][:host]
end
defp path do

Loading…
Cancel
Save