From 4a8ad389d830cd82e4050782c215c8d1dd8e8fbc Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 25 May 2022 19:15:15 +0800 Subject: [PATCH] script --- test/mongo/mongo_utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/mongo/mongo_utils.go b/test/mongo/mongo_utils.go index 8393e0477..ead1faf83 100644 --- a/test/mongo/mongo_utils.go +++ b/test/mongo/mongo_utils.go @@ -20,6 +20,7 @@ func GetUserAllChat(uid string) { ctx, _ := context.WithTimeout(context.Background(), time.Duration(config.Config.Mongo.DBTimeout)*time.Second) collection := Client.Database(config.Config.Mongo.DBDatabase).Collection("msg") var userChatList []db.UserChat + uid = uid + ":" filter := bson.M{"uid": bson.M{"$regex": uid}} //filter := bson.M{"uid": "17726378428:0"} result, err := collection.Find(context.Background(), filter)