diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-08 17:29:28 +0300 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-09-08 17:40:23 +0200 |
commit | 87d2805791e1dd6746009e8c1445719e8cbfd31d (patch) | |
tree | 79ebc51987ffa0528ef151f8837b976c66de5448 | |
parent | fd7e9bdd25ad05eb6fca109be3b0fe5fa01a71bb (diff) | |
download | pleroma-87d2805791e1dd6746009e8c1445719e8cbfd31d.tar.gz pleroma-87d2805791e1dd6746009e8c1445719e8cbfd31d.zip |
combo fixes
-rw-r--r-- | lib/pleroma/stats.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/stats.ex b/lib/pleroma/stats.ex index e7f8d272c..e5c9c668b 100644 --- a/lib/pleroma/stats.ex +++ b/lib/pleroma/stats.ex @@ -23,6 +23,7 @@ defmodule Pleroma.Stats do @impl true def init(_args) do + if Pleroma.Config.get(:env) == :test, do: :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo) {:ok, nil, {:continue, :calculate_stats}} end |