mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@ defmodule Pleroma.Web.OAuth.Token.Query do
|
||||||
|
|
||||||
import Ecto.Query, only: [from: 2]
|
import Ecto.Query, only: [from: 2]
|
||||||
|
|
||||||
@type query :: Ecto.Queryable.t() | Token.t()
|
|
||||||
|
|
||||||
alias Pleroma.Web.OAuth.Token
|
alias Pleroma.Web.OAuth.Token
|
||||||
|
|
||||||
|
@type query :: Ecto.Queryable.t() | Token.t()
|
||||||
|
|
||||||
@spec get_by_refresh_token(query, String.t()) :: query
|
@spec get_by_refresh_token(query, String.t()) :: query
|
||||||
def get_by_refresh_token(query \\ Token, refresh_token) do
|
def get_by_refresh_token(query \\ Token, refresh_token) do
|
||||||
from(q in query, where: q.refresh_token == ^refresh_token)
|
from(q in query, where: q.refresh_token == ^refresh_token)
|
||||||
|
|
Loading…
Reference in a new issue