Added mix commands to manage users and view actors

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-11-21 15:51:13 +01:00
parent 359bbe5449
commit 5e9c91e659
11 changed files with 542 additions and 9 deletions

View File

@@ -156,7 +156,7 @@ defmodule Mobilizon.Actors do
def get_actor_by_name_with_preload(name, type \\ nil) do
name
|> get_actor_by_name(type)
|> Repo.preload(:organized_events)
|> Repo.preload([:organized_events, :user])
end
@doc """