From f3e5520a4764659cd83f211221d50a08f7e96562 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 20 Sep 2024 11:36:15 +0300 Subject: [PATCH] fix: Fix account db repo definition (#10714) --- apps/explorer/lib/explorer/application.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/lib/explorer/application.ex b/apps/explorer/lib/explorer/application.ex index 1fb5cfabd5..4839ed13a8 100644 --- a/apps/explorer/lib/explorer/application.ex +++ b/apps/explorer/lib/explorer/application.ex @@ -176,7 +176,7 @@ defmodule Explorer.Application do end defp account_repo do - if System.get_env("ACCOUNT_DATABASE_URL") || Mix.env() == :test do + if Application.get_env(:explorer, Explorer.Account)[:enabled] || Mix.env() == :test do [Explorer.Repo.Account] else []