From: Olaf Wintermann Date: Sat, 6 Sep 2025 11:45:03 +0000 (+0200) Subject: fix broken updateFeedReadState query X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=a12d34c32f96f919e458443289dea8f7f0f7b7e3;p=rssreader.git fix broken updateFeedReadState query --- diff --git a/rss-application/pom.xml b/rss-application/pom.xml index 38fa064..a6aee1d 100644 --- a/rss-application/pom.xml +++ b/rss-application/pom.xml @@ -101,6 +101,12 @@ h2 2.3.232 + + + org.postgresql + postgresql + 42.2.17 + com.zaxxer diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/Database.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/Database.kt index 6aa07fa..ec6416f 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/Database.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/Database.kt @@ -384,7 +384,7 @@ object Database { public fun updateFeedReadState(feedCollection: FeedCollection, read: Boolean) { dataSource.connection.use { conn -> conn.prepareStatement(""" - update items set is_read = ? where feed_id in (select feed_id from feedcollections where feedcollection_id = ?) + update items set is_read = ? where feed_id in (select feed_id from feeds where feedcollection_id = ?) """.trimIndent()).use { stmt -> stmt.setBoolean(1, read) stmt.setInt(2, feedCollection.id)