forked from AkkomaGang/akkoma
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 @@ defp delete_group(group) do
|
||||||
dump_group(group)
|
dump_group(group)
|
||||||
|
|
||||||
group
|
group
|
||||||
|> ConfigDB.get_all_by_group()
|
|> Pleroma.ConfigDB.get_all_by_group()
|
||||||
|> Enum.each(&delete(&1, true))
|
|> Enum.each(fn config ->
|
||||||
|
Pleroma.ConfigDB.delete(%{group: config.group, key: config.key})
|
||||||
|
end)
|
||||||
else
|
else
|
||||||
_ -> shell_error("No settings in ConfigDB for #{inspect(group)}. Aborting.")
|
_ -> shell_error("No settings in ConfigDB for #{inspect(group)}. Aborting.")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue