Fix collection search to include only purchased records
This commit is contained in:
@@ -45,6 +45,7 @@ defmodule MusicLibrary.Records do
|
||||
|
||||
base_search =
|
||||
from r in Record,
|
||||
where: not is_nil(r.purchased_at),
|
||||
order_by: [r.artists[0]["sort_name"], r.title]
|
||||
|
||||
Enum.reduce(parsed_query, base_search, fn
|
||||
|
||||
Reference in New Issue
Block a user