From e444ba3fd0dd42c4c9e2118ab6d4dc2a44a9d997 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 25 May 2022 18:26:12 +0800 Subject: [PATCH] script --- test/mongo/mongo_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/mongo/mongo_utils.go b/test/mongo/mongo_utils.go index 9c9dce8cc..8393e0477 100644 --- a/test/mongo/mongo_utils.go +++ b/test/mongo/mongo_utils.go @@ -20,8 +20,8 @@ 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 - //filter := bson.M{"uid": bson.M{"$regex": uid}} - filter := bson.M{"uid": "17726378428:0"} + filter := bson.M{"uid": bson.M{"$regex": uid}} + //filter := bson.M{"uid": "17726378428:0"} result, err := collection.Find(context.Background(), filter) if err != nil { fmt.Println("find error", err.Error())