projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a45bd
)
Update token.ex
author
Maxim Filippov
<colixer@gmail.com>
Mon, 11 Feb 2019 09:48:24 +0000
(09:48 +0000)
committer
Maxim Filippov
<colixer@gmail.com>
Wed, 13 Feb 2019 09:59:56 +0000
(12:59 +0300)
lib/pleroma/web/oauth/token.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/oauth/token.ex
b/lib/pleroma/web/oauth/token.ex
index 380a3936051b24470b1fc1e6913f30127fdc6612..f5594f834f57a0ca1b8304633067c656fc2294c7 100644
(file)
--- a/
lib/pleroma/web/oauth/token.ex
+++ b/
lib/pleroma/web/oauth/token.ex
@@
-47,7
+47,7
@@
defmodule Pleroma.Web.OAuth.Token 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
@@
defmodule Pleroma.Web.OAuth.Token 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
)