Fix invalid type due to late aliasing
lib/pleroma/web/o_auth/token/query.ex:12:unknown_type Unknown type: Token.t/0.
This commit is contained in:
parent
09ae0ab24a
commit
65dfaa6cb9
@ -9,10 +9,10 @@ defmodule Pleroma.Web.OAuth.Token.Query do
|
||||
|
||||
import Ecto.Query, only: [from: 2]
|
||||
|
||||
@type query :: Ecto.Queryable.t() | Token.t()
|
||||
|
||||
alias Pleroma.Web.OAuth.Token
|
||||
|
||||
@type query :: Ecto.Queryable.t() | Token.t()
|
||||
|
||||
@spec get_by_refresh_token(query, String.t()) :: query
|
||||
def get_by_refresh_token(query \\ Token, refresh_token) do
|
||||
from(q in query, where: q.refresh_token == ^refresh_token)
|
||||
|
Loading…
Reference in New Issue
Block a user