mirror of https://github.com/usbharu/Hideout.git
style: fix lint (CI)
This commit is contained in:
parent
e46c85984c
commit
94d0bedb36
|
@ -34,6 +34,4 @@ interface RelationshipRepository {
|
|||
targetIds: List<ActorId>,
|
||||
following: Boolean
|
||||
): List<Relationship>
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,9 @@ class ExposedRelationshipRepository(override val domainEventPublisher: DomainEve
|
|||
blocking: Boolean
|
||||
): List<Relationship> = 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<Relationship> = 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() }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue