query: $gte => $gt
This commit is contained in:
parent
224de1c7b9
commit
b3a0b1d35e
2
main.go
2
main.go
|
@ -54,7 +54,7 @@ func main() {
|
|||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
cur, err := mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gte": start}})
|
||||
cur, err := mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gt": start}})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user