Display latest purchase in stats page

This commit is contained in:
Claudio Ortolina
2024-10-19 19:46:39 +01:00
parent 36333112a4
commit 28609dcf87
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ defmodule MusicLibrary.Records do
def get_latest_record! do
q =
from r in Record,
order_by: [desc: r.inserted_at],
order_by: [desc: r.purchased_at],
limit: 1,
select: ^@fields