Minor Fixes

This commit is contained in:
Rajarshee Chatterjee
2023-01-29 18:22:30 +05:30
parent c38fc3232e
commit 650ed2ff67
6 changed files with 25 additions and 15 deletions
+5 -1
View File
@@ -11,8 +11,12 @@ const db = SQLite.openDatabase('lnreader.db');
export const insertChapters = async (
novelId: number,
chapters: ChapterItem[],
chapters?: ChapterItem[],
) => {
if (!chapters?.length) {
return;
}
let insertChaptersQuery = `
INSERT INTO chapters (
chapterUrl, chapterName, releaseDate,