Limit the amount of records in the list
Needs to be replaced with pagination
This commit is contained in:
@@ -18,7 +18,9 @@ defmodule MusicLibrary.Records do
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
def list_records do
|
def list_records do
|
||||||
Repo.all(Record)
|
Record
|
||||||
|
|> limit(10)
|
||||||
|
|> Repo.all()
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
|
|||||||
Reference in New Issue
Block a user