bug fix
This commit is contained in:
parent
685f934fd7
commit
c4e6ac8fb4
|
@ -23,7 +23,7 @@ func collectCopyCountLiveAnchors(cxt *WorkerContext) {
|
||||||
if ok || (ok == false && err == nil) {
|
if ok || (ok == false && err == nil) {
|
||||||
|
|
||||||
var cur *mongo.Cursor
|
var cur *mongo.Cursor
|
||||||
if liveanchor == nil {
|
if ok == false {
|
||||||
cur, err = mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gt": "2020-05-30"}})
|
cur, err = mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gt": "2020-05-30"}})
|
||||||
} else {
|
} else {
|
||||||
last := liveanchor.CreateAt
|
last := liveanchor.CreateAt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user