Add TODO around scanning an already collected record

This commit is contained in:
Claudio Ortolina
2025-02-16 13:45:23 +00:00
parent 9ff8106be4
commit 23fab67e53
2 changed files with 4 additions and 3 deletions
@@ -107,6 +107,7 @@ defmodule MusicLibraryWeb.RecordLive.BarcodeScannerComponent do
def handle_event("barcode_scanned", %{"number" => number}, socket) do
Logger.debug(fn -> "Scanned barcode #{number}" end)
# TODO: inform when record is already in collection
socket =
case Records.search_release_by_barcode(number) do
{:ok, [best_match_release | _other_releases]} ->