mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 07:45:35 +01:00
Fix books update bugs
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
|
.vscode
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ impl Update for Book {
|
|||||||
BEGIN
|
BEGIN
|
||||||
IF EXISTS (SELECT * FROM books WHERE source = source_ AND remote_id = remote_id_) THEN
|
IF EXISTS (SELECT * FROM books WHERE source = source_ AND remote_id = remote_id_) THEN
|
||||||
UPDATE books SET title = title_, lang = lang_, file_type = file_type_,
|
UPDATE books SET title = title_, lang = lang_, file_type = file_type_,
|
||||||
uploaded = uploaded_, is_deleted = is_deleted, pages = pages_
|
uploaded = uploaded_, is_deleted = is_deleted_, pages = pages_
|
||||||
WHERE source = source_ AND remote_id = remote_id_;
|
WHERE source = source_ AND remote_id = remote_id_;
|
||||||
RETURN;
|
RETURN;
|
||||||
END IF;
|
END IF;
|
||||||
|
|||||||
Reference in New Issue
Block a user