diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:01:26 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-02 17:01:26 +0700 |
commit | 1b3d92192194baf6b431cd9f0ce58062d1b703d5 (patch) | |
tree | 2f81ff81c7b039ccbb482e5212af554a8982ac40 /lib/pleroma/web/oauth/token.ex | |
parent | 4212527928020de5b67424f090c67fc20d0844af (diff) | |
download | pleroma-1b3d92192194baf6b431cd9f0ce58062d1b703d5.tar.gz |
change `Repo.get(User, id)` => `User.get_by_id(id)`
Diffstat (limited to 'lib/pleroma/web/oauth/token.ex')
-rw-r--r-- | lib/pleroma/web/oauth/token.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/token.ex b/lib/pleroma/web/oauth/token.ex index a8b06db36..2b5ad9b94 100644 --- a/lib/pleroma/web/oauth/token.ex +++ b/lib/pleroma/web/oauth/token.ex @@ -27,7 +27,7 @@ defmodule Pleroma.Web.OAuth.Token do def exchange_token(app, auth) do with {:ok, auth} <- Authorization.use_token(auth), true <- auth.app_id == app.id do - create_token(app, Repo.get(User, auth.user_id), auth.scopes) + create_token(app, User.get_by_id(auth.user_id), auth.scopes) end end |