fix tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-04 21:52:23 -05:00
parent 1284a0c4b1
commit 0ea953a34c
4 changed files with 12 additions and 3 deletions

View File

@ -85,7 +85,9 @@ defmodule Memex.Accounts.Invites do
end
end
@spec get_invite_by_token(Invite.token()) :: {:ok, Invite.t()} | {:error, :invalid_token}
@spec get_invite_by_token(Invite.token() | nil) :: {:ok, Invite.t()} | {:error, :invalid_token}
defp get_invite_by_token(token) when token in [nil, ""], do: {:error, :invalid_token}
defp get_invite_by_token(token) do
Repo.one(
from i in Invite,