projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/jason-view-render' into 'develop'
[akkoma]
/
lib
/
pleroma
/
user_invite_token.ex
diff --git
a/lib/pleroma/user_invite_token.ex
b/lib/pleroma/user_invite_token.ex
index fadc89891a880d0ab10d7b55a168b547152c1292..b9e80acddf89df4d7b4b4fceda960cb9b9763d36 100644
(file)
--- a/
lib/pleroma/user_invite_token.ex
+++ b/
lib/pleroma/user_invite_token.ex
@@
-74,7
+74,7
@@
defmodule Pleroma.UserInviteToken do
@spec find_by_token(token()) :: {:ok, UserInviteToken.t()} | nil
def find_by_token(token) do
@spec find_by_token(token()) :: {:ok, UserInviteToken.t()} | nil
def find_by_token(token) do
- with invite <- Repo.get_by(UserInviteToken, token: token) do
+ with
%UserInviteToken{} =
invite <- Repo.get_by(UserInviteToken, token: token) do
{:ok, invite}
end
end
{:ok, invite}
end
end