<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>
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)