forked from AkkomaGang/akkoma
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 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue