This commit is contained in:
2023-05-06 18:00:01 +02:00
parent 8677ee9181
commit 678b65146b
2 changed files with 46 additions and 37 deletions

View File

@@ -226,7 +226,7 @@ impl Update for BookAuthor {
SELECT id INTO book_id FROM books WHERE source = source_ AND remote_id = book_;
SELECT id INTO author_id FROM authors WHERE source = source_ AND remote_id = author_;
IF book_id IS NULL OR author_id IS NULL
IF book_id IS NULL OR author_id IS NULL THEN
RETURN;
END IF;