Don't pipe in one function only

This commit is contained in:
Claudio Ortolina
2025-03-09 15:49:07 +00:00
parent fcd43d7bd6
commit bd9f88ab02
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ defmodule MusicLibrary.Collection do
where: fragment("records.purchased_at IS NOT NULL"),
select: %{record_id: fragment("records.id"), release_id: r.value}
q |> Repo.all()
Repo.all(q)
end
def count_records_by_genre do
@@ -78,7 +78,7 @@ defmodule MusicLibrary.Collection do
order_by: [desc: count(r.value)],
select: %{genre: r.value, count: count(r.value)}
q |> Repo.all()
Repo.all(q)
end
defp base_search do
+1 -1
View File
@@ -28,7 +28,7 @@ defmodule MusicLibrary.Wishlist do
where: fragment("records.purchased_at IS NULL"),
select: %{record_id: fragment("records.id"), release_id: r.value}
q |> Repo.all()
Repo.all(q)
end
defp base_search do