mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 19:14:03 +00:00
Use Pleroma.ConfigDB.delete/1 instead of rolling our own
This commit is contained in:
parent
4aad066091
commit
685e5c8509
|
@ -323,9 +323,7 @@ defp check_configdb(callback) 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