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:
Mark Felder 2024-01-20 17:18:16 -05:00
parent 09ae0ab24a
commit 65dfaa6cb9
1 changed files with 2 additions and 2 deletions

View File

@ -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)