query: $gte => $gt

This commit is contained in:
eson 2020-12-09 11:12:07 +08:00
parent 224de1c7b9
commit b3a0b1d35e

View File

@ -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)
}