forked from mirrors/akkoma
Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1
This commit is contained in:
parent
685e5c8509
commit
696d39c3dc
|
@ -334,8 +334,10 @@ defp delete_group(group) 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