change Repo.get(User, id) => User.get_by_id(id)

This commit is contained in:
Egor Kislitsyn 2019-04-02 17:01:26 +07:00
commit 1b3d921921
23 changed files with 110 additions and 114 deletions

View file

@ -80,7 +80,7 @@ defmodule Pleroma.List do
# Get lists to which the account belongs.
def get_lists_account_belongs(%User{} = owner, account_id) do
user = Repo.get(User, account_id)
user = User.get_by_id(account_id)
query =
from(