From: Alexander Strizhakov Date: Tue, 8 Sep 2020 14:29:28 +0000 (+0300) Subject: combo fixes X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=87d2805791e1dd6746009e8c1445719e8cbfd31d;p=akkoma combo fixes --- 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