Find last listened track based on title and artist as well

This commit is contained in:
Claudio Ortolina
2025-06-03 18:05:23 +01:00
parent c23260d03d
commit 669b144c55
3 changed files with 16 additions and 2 deletions
@@ -29,7 +29,7 @@ defmodule MusicLibraryWeb.CollectionLive.Show do
@impl true
def handle_params(%{"id" => id}, _, socket) do
record = Records.get_record!(id)
last_listened_track = Records.get_last_listened_track(id)
last_listened_track = Records.get_last_listened_track(record)
socket =
if record.selected_release_id do