This commit is contained in:
Maxim Filippov 2019-08-31 01:09:48 +03:00
parent f182f0f6bd
commit 4d6e22bb9b

View file

@ -248,8 +248,12 @@ def insert_log(%{
|> insert_log_entry_with_message() |> insert_log_entry_with_message()
end end
@spec insert_log(%{actor: User, action: String.t(), nicknames: [String.t()], tags: [String.t()]}) :: @spec insert_log(%{
{:ok, ModerationLog} | {:error, any} actor: User,
action: String.t(),
nicknames: [String.t()],
tags: [String.t()]
}) :: {:ok, ModerationLog} | {:error, any}
def insert_log(%{ def insert_log(%{
actor: %User{} = actor, actor: %User{} = actor,
nicknames: nicknames, nicknames: nicknames,