mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Use Pleroma.ConfigDB.delete/1 instead of rolling our own
This commit is contained in:
parent
4aad066091
commit
685e5c8509
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue