style: fix lint (CI)

This commit is contained in:
usbharu 2024-09-14 05:00:09 +00:00 committed by github-actions[bot]
parent e46c85984c
commit 94d0bedb36
2 changed files with 6 additions and 4 deletions

View File

@ -34,6 +34,4 @@ interface RelationshipRepository {
targetIds: List<ActorId>, targetIds: List<ActorId>,
following: Boolean following: Boolean
): List<Relationship> ): List<Relationship>
} }

View File

@ -77,7 +77,9 @@ class ExposedRelationshipRepository(override val domainEventPublisher: DomainEve
blocking: Boolean blocking: Boolean
): List<Relationship> = query { ): List<Relationship> = query {
Relationships.selectAll().where { 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() } }.map { it.toRelationships() }
} }
@ -87,7 +89,9 @@ class ExposedRelationshipRepository(override val domainEventPublisher: DomainEve
following: Boolean following: Boolean
): List<Relationship> = query { ): List<Relationship> = query {
Relationships.selectAll().where { 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() } }.map { it.toRelationships() }
} }