Skip to content

Commit 2a5098c

Browse files
committed
Unbreak removing series from collection.
Correction for ff8fff5 commit. Addressed to #440
1 parent ff8fff5 commit 2a5098c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/resources/sql/collection_dao_queries.properties

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ SELECT c.id AS collection_id \
4949
collection.remove_series_from_collection = \
5050
DELETE \
5151
FROM collections_series \
52-
WHERE user_id = :user_id \
53-
AND series_id = :series_id
52+
WHERE series_id = :series_id \
53+
AND collection_id = ( \
54+
SELECT id \
55+
FROM collections \
56+
WHERE user_id = :user_id \
57+
)
58+
5459

5560
collection.find_info_by_slug = \
5661
SELECT c.id \

0 commit comments

Comments
 (0)