summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-09-08 17:29:28 +0300
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-09-08 17:40:23 +0200
commit87d2805791e1dd6746009e8c1445719e8cbfd31d (patch)
tree79ebc51987ffa0528ef151f8837b976c66de5448
parentfd7e9bdd25ad05eb6fca109be3b0fe5fa01a71bb (diff)
combo fixes
-rw-r--r--lib/pleroma/stats.ex1
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