]> uap-core.de Git - rssreader.git/commitdiff
fix broken updateFeedReadState query
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 6 Sep 2025 11:45:03 +0000 (13:45 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 6 Sep 2025 11:45:03 +0000 (13:45 +0200)
rss-application/pom.xml
rss-application/src/main/kotlin/de/unixwork/rssreader/Database.kt

index 38fa064c9e7a068f478ade609ea7995099c0b851..a6aee1d7056731ce0daa428f749c33d868d357e1 100644 (file)
             <artifactId>h2</artifactId>
             <version>2.3.232</version>
         </dependency>
+        
+        <dependency>
+            <groupId>org.postgresql</groupId>
+            <artifactId>postgresql</artifactId>
+            <version>42.2.17</version>
+        </dependency>
 
         <dependency>
             <groupId>com.zaxxer</groupId>
index 6aa07fa9509b442a23875d9ac879f0a3cdcb40ff..ec6416f91d9ec0719c97c49d8d186a318410f7b6 100644 (file)
@@ -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)