From e51915d1cd96f5bfbb64fb7560d0d13e26e0a350 Mon Sep 17 00:00:00 2001 From: davidoskky Date: Wed, 28 Dec 2022 14:25:56 +0100 Subject: [PATCH] Include author field when updating the database --- .../amine/apps/readerforselfossv2/repository/RepositoryImpl.kt | 1 + .../sqldelight/bou/amine/apps/readerforselfossv2/dao/Items.sq | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt index 3979733..26d1733 100644 --- a/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt +++ b/shared/src/commonMain/kotlin/bou/amine/apps/readerforselfossv2/repository/RepositoryImpl.kt @@ -511,6 +511,7 @@ class Repository( item.link, item.sourcetitle, item.tags.joinToString(","), + item.author, item.id.toString() ) diff --git a/shared/src/commonMain/sqldelight/bou/amine/apps/readerforselfossv2/dao/Items.sq b/shared/src/commonMain/sqldelight/bou/amine/apps/readerforselfossv2/dao/Items.sq index 04a9c00..fd5f34e 100644 --- a/shared/src/commonMain/sqldelight/bou/amine/apps/readerforselfossv2/dao/Items.sq +++ b/shared/src/commonMain/sqldelight/bou/amine/apps/readerforselfossv2/dao/Items.sq @@ -31,4 +31,4 @@ deleteItemsWhereSource: DELETE FROM ITEM WHERE `sourcetitle` = ?; updateItem: -UPDATE ITEM SET `datetime` = ?, `title` = ?, `content` = ?, `unread` = ?, `starred` = ?, `thumbnail` = ?, `icon` = ?, `link` = ?, `sourcetitle` = ?, `tags` = ? WHERE `id` = ?; \ No newline at end of file +UPDATE ITEM SET `datetime` = ?, `title` = ?, `content` = ?, `unread` = ?, `starred` = ?, `thumbnail` = ?, `icon` = ?, `link` = ?, `sourcetitle` = ?, `tags` = ?, `author` = ? WHERE `id` = ?; \ No newline at end of file