Skip to content

Commit

Permalink
Fixes an issue with the RelationExpander
Browse files Browse the repository at this point in the history
  • Loading branch information
ppanopticon committed Feb 7, 2025
1 parent 604f80e commit b8a996f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ class RelationExpander(
this@RelationExpander.retrievableReader.getConnections(emptyList(), this@RelationExpander.incomingRelations, ids)
} else {
emptySequence()
}.groupBy { it.subjectId }
}.groupBy { it.objectId }

to

if (this@RelationExpander.outgoingRelations.isNotEmpty()) {
this@RelationExpander.retrievableReader.getConnections(ids, this@RelationExpander.outgoingRelations, emptyList())
} else {
emptySequence()
}.groupBy { it.objectId })
}.groupBy { it.subjectId })
} else {
emptyMap<RetrievableId, List<Relationship.ById>>() to emptyMap()
}
Expand Down

0 comments on commit b8a996f

Please sign in to comment.