Skip to content

Commit

Permalink
fix: Resolve 'Can't Parse Page' SQL Syntax Error (#1266)
Browse files Browse the repository at this point in the history
fix cant parse page sql syntax error
  • Loading branch information
nguyd1 authored Oct 4, 2024
1 parent b1778c5 commit 9c68260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/queries/ChapterQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9c68260

Please sign in to comment.