devel #34

Merged
inhji merged 4 commits from devel into main 2023-03-31 13:55:26 +02:00
Showing only changes of commit d3f585f807 - Show all commits

View file

@ -23,7 +23,9 @@ defmodule Chiya.Channels do
""" """
def list_channels do def list_channels do
Repo.all(Channel) Channel
|> order_by(desc: :visibility)
|> Repo.all()
end end
def preload_channel(channel), do: Repo.preload(channel, @preloads) def preload_channel(channel), do: Repo.preload(channel, @preloads)