Use Pleroma.ConfigDB.delete/1 instead of rolling our own

This commit is contained in:
Mark Felder 2020-12-04 11:09:13 -06:00
parent 4aad066091
commit 685e5c8509

View file

@ -323,9 +323,7 @@ defmodule Mix.Tasks.Pleroma.Config do
defp delete_key(group, key) do
check_configdb(fn ->
group
|> ConfigDB.get_all_by_group_and_key(key)
|> Enum.each(&delete(&1, true))
Pleroma.ConfigDB.delete(%{group: group, key: key})
end)
end