Browse Source

models: Fixed earliestDate being exclusive of the earliest date in chnages.List.

1.1 1.1.0
Gisle Aune 6 years ago
parent
commit
947765884e
  1. 2
      models/changes/list.go

2
models/changes/list.go

@ -31,7 +31,7 @@ func List(filter *Filter) ([]models.Change, error) {
} }
if filter.EarliestDate != nil { if filter.EarliestDate != nil {
query["date"] = bson.M{"$gt": *filter.EarliestDate}
query["date"] = bson.M{"$gte": *filter.EarliestDate}
} }
} else { } else {
query["listed"] = true query["listed"] = true

Loading…
Cancel
Save