From: Mark Felder Date: Fri, 4 Dec 2020 17:09:13 +0000 (-0600) Subject: Use Pleroma.ConfigDB.delete/1 instead of rolling our own X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=685e5c8509b4c08bb74eab2438912031ab9b1c19;p=akkoma Use Pleroma.ConfigDB.delete/1 instead of rolling our own --- diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index d2e9a3760..7ec791b36 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -323,9 +323,7 @@ defmodule Mix.Tasks.Pleroma.Config do defp delete_key(group, key) do check_configdb(fn -> - group - |> ConfigDB.get_all_by_group_and_key(key) - |> Enum.each(&delete(&1, true)) + Pleroma.ConfigDB.delete(%{group: group, key: key}) end) end