Skip to content

Commit 1776174

Browse files
committed
fix(api): cannot create readlist or collection with database in WAL mode
1 parent b837963 commit 1776174

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

komga/src/main/kotlin/org/gotson/komga/domain/service/ReadListLifecycle.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import org.gotson.komga.infrastructure.image.MosaicGenerator
1313
import org.gotson.komga.infrastructure.metadata.comicrack.ReadListProvider
1414
import org.springframework.context.ApplicationEventPublisher
1515
import org.springframework.stereotype.Service
16-
import org.springframework.transaction.annotation.Transactional
1716
import org.springframework.transaction.support.TransactionTemplate
1817

1918
private val logger = KotlinLogging.logger {}
@@ -32,7 +31,6 @@ class ReadListLifecycle(
3231
@Throws(
3332
DuplicateNameException::class,
3433
)
35-
@Transactional
3634
fun addReadList(readList: ReadList): ReadList {
3735
logger.info { "Adding new read list: $readList" }
3836

@@ -46,7 +44,6 @@ class ReadListLifecycle(
4644
return readListRepository.findByIdOrNull(readList.id)!!
4745
}
4846

49-
@Transactional
5047
fun updateReadList(toUpdate: ReadList) {
5148
logger.info { "Update read list: $toUpdate" }
5249
val existing =
@@ -74,7 +71,6 @@ class ReadListLifecycle(
7471
* Add book to read list by name.
7572
* Read list will be created if it doesn't exist.
7673
*/
77-
@Transactional
7874
fun addBookToReadList(
7975
readListName: String,
8076
book: Book,

komga/src/main/kotlin/org/gotson/komga/domain/service/SeriesCollectionLifecycle.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.gotson.komga.domain.persistence.ThumbnailSeriesCollectionRepository
1111
import org.gotson.komga.infrastructure.image.MosaicGenerator
1212
import org.springframework.context.ApplicationEventPublisher
1313
import org.springframework.stereotype.Service
14-
import org.springframework.transaction.annotation.Transactional
1514
import org.springframework.transaction.support.TransactionTemplate
1615

1716
private val logger = KotlinLogging.logger {}
@@ -28,7 +27,6 @@ class SeriesCollectionLifecycle(
2827
@Throws(
2928
DuplicateNameException::class,
3029
)
31-
@Transactional
3230
fun addCollection(collection: SeriesCollection): SeriesCollection {
3331
logger.info { "Adding new collection: $collection" }
3432

@@ -42,7 +40,6 @@ class SeriesCollectionLifecycle(
4240
return collectionRepository.findByIdOrNull(collection.id)!!
4341
}
4442

45-
@Transactional
4643
fun updateCollection(toUpdate: SeriesCollection) {
4744
logger.info { "Update collection: $toUpdate" }
4845

@@ -70,7 +67,6 @@ class SeriesCollectionLifecycle(
7067
* Add series to collection by name.
7168
* Collection will be created if it doesn't exist.
7269
*/
73-
@Transactional
7470
fun addSeriesToCollection(
7571
collectionName: String,
7672
series: Series,

0 commit comments

Comments
 (0)