From: Mark Felder Date: Fri, 4 Dec 2020 17:19:58 +0000 (-0600) Subject: Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=696d39c3dc32da1e3e163abb413f42d68c3a731f;p=akkoma Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1 --- diff --git a/lib/mix/tasks/pleroma/config.ex b/lib/mix/tasks/pleroma/config.ex index 7ec791b36..00e7be6f4 100644 --- a/lib/mix/tasks/pleroma/config.ex +++ b/lib/mix/tasks/pleroma/config.ex @@ -334,8 +334,10 @@ defmodule Mix.Tasks.Pleroma.Config do dump_group(group) group - |> ConfigDB.get_all_by_group() - |> Enum.each(&delete(&1, true)) + |> Pleroma.ConfigDB.get_all_by_group() + |> Enum.each(fn config -> + Pleroma.ConfigDB.delete(%{group: config.group, key: config.key}) + end) else _ -> shell_error("No settings in ConfigDB for #{inspect(group)}. Aborting.") end