We have a searchByIdentifiers() function in "item.service.ts" that searches for a single item by mbid, artist and title, which is used to check if an item already exists in the database before adding to a user's collection.
We simply need to add an "id" parameter which will also search the item's ID, and then update the addItems() function to add the id into the searchInput if it exists.
We have a
searchByIdentifiers()function in "item.service.ts" that searches for a single item by mbid, artist and title, which is used to check if an item already exists in the database before adding to a user's collection.We simply need to add an "id" parameter which will also search the item's ID, and then update the
addItems()function to add the id into thesearchInputif it exists.