fixes for tests

This commit is contained in:
Alexander Strizhakov 2020-06-16 19:03:45 +03:00
commit b66e6eb521
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 7 additions and 11 deletions

View file

@ -54,13 +54,13 @@ defmodule Pleroma.ConfigDB do
defp create(params) do
%ConfigDB{}
|> changeset(params, transform?)
|> changeset(params)
|> Repo.insert()
end
defp update(%ConfigDB{} = config, %{value: value}) do
config
|> changeset(%{value: value}, transform?)
|> changeset(%{value: value})
|> Repo.update()
end