mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1
This commit is contained in:
parent
685e5c8509
commit
696d39c3dc
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue