mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
dump_key/2 no longer used
This commit is contained in:
parent
60c4ac0f70
commit
7fd4f4908b
1 changed files with 0 additions and 10 deletions
|
@ -289,16 +289,6 @@ defmodule Mix.Tasks.Pleroma.Config do
|
||||||
shell_info("config #{inspect(config.group)}, #{inspect(config.key)}, #{value}\r\n\r\n")
|
shell_info("config #{inspect(config.group)}, #{inspect(config.key)}, #{value}\r\n\r\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
defp dump_key(group, key) when is_atom(group) and is_atom(key) do
|
|
||||||
ConfigDB
|
|
||||||
|> Repo.all()
|
|
||||||
|> Enum.filter(fn x ->
|
|
||||||
if x.group == group && x.key == key do
|
|
||||||
x |> dump
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
defp dump_group(group) when is_atom(group) do
|
defp dump_group(group) when is_atom(group) do
|
||||||
%{group: group}
|
%{group: group}
|
||||||
|> ConfigDB.get_by_params()
|
|> ConfigDB.get_by_params()
|
||||||
|
|
Loading…
Reference in a new issue