WIP feat: member user relation
This commit is contained in:
parent
ba79261d1d
commit
0dddeeb7a6
35 changed files with 1208 additions and 192 deletions
|
|
@ -4,7 +4,10 @@ defmodule MvWeb.UserLive.Index do
|
|||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
users = Ash.read!(Mv.Accounts.User, domain: Mv.Accounts)
|
||||
users =
|
||||
Ash.read!(Mv.Accounts.User, domain: Mv.Accounts)
|
||||
|> Ash.load!(:member)
|
||||
|
||||
sorted = Enum.sort_by(users, & &1.email)
|
||||
|
||||
{:ok,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue