mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 21:27:40 +03:00
Avoid crashing if multiple entries exist for same URL/source
Related to #8331. We'll need to revisit some of the get/insert logic to make sure this doesn't actually happen, but at least it'll stop crashing for now.
This commit is contained in:
parent
7446b28ff1
commit
dd6c9ce2fe
1 changed files with 3 additions and 1 deletions
|
@ -32,10 +32,12 @@ SELECT *
|
||||||
FROM mangas
|
FROM mangas
|
||||||
WHERE _id = :id;
|
WHERE _id = :id;
|
||||||
|
|
||||||
|
-- TODO: this should ideally never really have more than 1 result
|
||||||
getMangaByUrlAndSource:
|
getMangaByUrlAndSource:
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM mangas
|
FROM mangas
|
||||||
WHERE url = :url AND source = :source;
|
WHERE url = :url AND source = :source
|
||||||
|
LIMIT 1;
|
||||||
|
|
||||||
getFavorites:
|
getFavorites:
|
||||||
SELECT *
|
SELECT *
|
||||||
|
|
Loading…
Reference in a new issue