fix tests

This commit is contained in:
2022-01-22 17:21:13 -05:00
parent 16018ae111
commit 820ceed6bb
11 changed files with 142 additions and 1103 deletions

View File

@ -96,7 +96,8 @@ defmodule Cannery.Invites do
{:error, %Ecto.Changeset{}}
"""
@spec create_invite(Accounts.User.t() | Ecto.UUID.t(), map()) :: Invite.t()
@spec create_invite(user_or_user_id :: Accounts.User.t() | Ecto.UUID.t(), attrs :: map()) ::
Invite.t()
def create_invite(%{id: user_id}, attrs) do
create_invite(user_id, attrs)
end