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 @@ defp check_configdb(callback) do
defp delete_key(group, key) do defp delete_key(group, key) do
check_configdb(fn -> check_configdb(fn ->
group Pleroma.ConfigDB.delete(%{group: group, key: key})
|> ConfigDB.get_all_by_group_and_key(key)
|> Enum.each(&delete(&1, true))
end) end)
end end