Skip to content

Commit

Permalink
Fix hardcoded field in query
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Jun 21, 2024
1 parent 477f321 commit a94fba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ingestor/src/main/scala/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ extension (instant: Instant)
def range(field: String)(since: Instant, until: Option[Instant]): Filter =
import Filter.*
val gtes = gte(field, since)
until.fold(gtes)(until => gtes.and(lt("updatedAt", until)))
until.fold(gtes)(until => gtes.and(lt(field, until)))

0 comments on commit a94fba6

Please sign in to comment.