Skip to content

Commit

Permalink
Fixed use of wrong column in FieldLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaro committed Dec 11, 2023
1 parent 87203fc commit 8c6019c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class FieldLookup(
return@flow
}

val descriptors = reader.getAll(ids).filter { it.retrievableId != null }.associateBy { it.retrievableId!! }
val descriptors = reader.getAllBy(ids, "retrievableId").filter { it.retrievableId != null }.associateBy { it.retrievableId!! }

inputRetrieved.forEach {
inputRetrieved.forEach {retrieved ->

val withProperties = Retrieved.PlusProperties(it)
val descriptor = descriptors[retrieved.id]

val descriptor = descriptors[it.id]
val withProperties = Retrieved.PlusProperties(retrieved)

if (descriptor != null) {
val values = descriptor.values().toMap()
Expand Down

0 comments on commit 8c6019c

Please sign in to comment.