mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-30 03:31:02 +00:00
9 lines
243 B
Elixir
9 lines
243 B
Elixir
defmodule LiveBeatsWeb.Nav do
|
|
import Phoenix.LiveView
|
|
|
|
alias LiveBeats.MediaLibrary
|
|
|
|
def on_mount(:default, _params, _session, socket) do
|
|
{:cont, assign(socket, :active_users, MediaLibrary.list_active_profiles(limit: 20))}
|
|
end
|
|
end
|