diff --git a/src/database/queries/ChapterQueries.ts b/src/database/queries/ChapterQueries.ts index 7c10a7b1e..f40cbe436 100644 --- a/src/database/queries/ChapterQueries.ts +++ b/src/database/queries/ChapterQueries.ts @@ -42,7 +42,7 @@ export const insertChapters = async ( ` UPDATE Chapter SET page = ?, position = ? - WHERE path = ? AND novelId = ? (AND page != ? OR position != ?) + WHERE path = ? AND novelId = ? AND (page != ? OR position != ?) `, [ chapter.page || '1',