fixed from PR comment

This commit is contained in:
Zurdi
2024-07-04 19:09:01 +02:00
parent febc579fb8
commit 0bd4c6f704
3 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ async def add_collection(
cleaned_data["name"], request.user.id
)
if collection_db:
if db_collection:
raise CollectionAlreadyExistsException(cleaned_data["name"])
_added_collection = db_collection_handler.add_collection(Collection(**cleaned_data))

View File

@@ -33,7 +33,7 @@ async function searchCovers() {
if (!searching.value) {
searching.value = true;
await steamgriddb
await sgdbApi
.searchCover({
searchTerm: searchTerm.value,
})