From 94d0bedb36e7fdf1451ed49e7d136b570fad2f0e Mon Sep 17 00:00:00 2001 From: usbharu Date: Sat, 14 Sep 2024 05:00:09 +0000 Subject: [PATCH] style: fix lint (CI) --- .../domain/model/relationship/RelationshipRepository.kt | 2 -- .../exposedrepository/ExposedRelationshipRepository.kt | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/RelationshipRepository.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/RelationshipRepository.kt index 3110d9d0..09f1bc3a 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/RelationshipRepository.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/model/relationship/RelationshipRepository.kt @@ -34,6 +34,4 @@ interface RelationshipRepository { targetIds: List, following: Boolean ): List - } - diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/exposedrepository/ExposedRelationshipRepository.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/exposedrepository/ExposedRelationshipRepository.kt index 2cdc4c8c..3b0b63b0 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/exposedrepository/ExposedRelationshipRepository.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/infrastructure/exposedrepository/ExposedRelationshipRepository.kt @@ -77,7 +77,9 @@ class ExposedRelationshipRepository(override val domainEventPublisher: DomainEve blocking: Boolean ): List = query { Relationships.selectAll().where { - Relationships.actorId inList actorIds.map { it.id } and (Relationships.targetActorId eq targetId.id) and (Relationships.blocking eq blocking) + Relationships.actorId inList actorIds.map { + it.id + } and (Relationships.targetActorId eq targetId.id) and (Relationships.blocking eq blocking) }.map { it.toRelationships() } } @@ -87,7 +89,9 @@ class ExposedRelationshipRepository(override val domainEventPublisher: DomainEve following: Boolean ): List = query { Relationships.selectAll().where { - Relationships.actorId eq actorId.id and (Relationships.targetActorId inList targetIds.map { it.id }) and (Relationships.following eq following) + Relationships.actorId eq actorId.id and (Relationships.targetActorId inList targetIds.map { + it.id + }) and (Relationships.following eq following) }.map { it.toRelationships() } }