Update token.ex
This commit is contained in:
parent
62a45bdc11
commit
760fec4cb8
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ def create_token(%App{} = app, %User{} = user) do
|
|||
|
||||
def delete_user_tokens(%User{id: user_id}) do
|
||||
from(
|
||||
t in Pleroma.Web.OAuth.Token,
|
||||
t in Token,
|
||||
where: t.user_id == ^user_id
|
||||
)
|
||||
|> Repo.delete_all()
|
||||
|
@ -55,7 +55,7 @@ def delete_user_tokens(%User{id: user_id}) do
|
|||
|
||||
def delete_user_token(%User{id: user_id}, token_id) do
|
||||
from(
|
||||
t in Pleroma.Web.OAuth.Token,
|
||||
t in Token,
|
||||
where: t.user_id == ^user_id,
|
||||
where: t.id == ^token_id
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue