diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-12-04 11:19:58 -0600 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-12-04 11:19:58 -0600 |
commit | 696d39c3dc32da1e3e163abb413f42d68c3a731f (patch) | |
tree | a8ab831cd519153f77ba5b32fd99ca7dedb43de9 | |
parent | 685e5c8509b4c08bb74eab2438912031ab9b1c19 (diff) | |
download | pleroma-696d39c3dc32da1e3e163abb413f42d68c3a731f.tar.gz |
Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1
-rw-r--r-- | lib/mix/tasks/pleroma/config.ex | 6 |
1 files changed, 4 insertions, 2 deletions
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 |