File tree Expand file tree Collapse file tree
komga/src/main/kotlin/org/gotson/komga/domain/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import org.gotson.komga.infrastructure.image.MosaicGenerator
1313import org.gotson.komga.infrastructure.metadata.comicrack.ReadListProvider
1414import org.springframework.context.ApplicationEventPublisher
1515import org.springframework.stereotype.Service
16- import org.springframework.transaction.annotation.Transactional
1716import org.springframework.transaction.support.TransactionTemplate
1817
1918private 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 ,
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import org.gotson.komga.domain.persistence.ThumbnailSeriesCollectionRepository
1111import org.gotson.komga.infrastructure.image.MosaicGenerator
1212import org.springframework.context.ApplicationEventPublisher
1313import org.springframework.stereotype.Service
14- import org.springframework.transaction.annotation.Transactional
1514import org.springframework.transaction.support.TransactionTemplate
1615
1716private 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 ,
You can’t perform that action at this time.
0 commit comments