From 1373e968a52fb90401ce7f101bd2946efbd8ba07 Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Tue, 12 Dec 2023 16:30:47 +0800 Subject: [PATCH] update user command --- pkg/common/db/mgo/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/mgo/user.go b/pkg/common/db/mgo/user.go index 4f0d29eb1..e1c9ffc90 100644 --- a/pkg/common/db/mgo/user.go +++ b/pkg/common/db/mgo/user.go @@ -101,7 +101,7 @@ func (u *UserMgo) UpdateUserCommand(ctx context.Context, userID string, Type int collection := u.coll.Database().Collection("userCommands") filter := bson.M{"userID": userID, "type": Type, "uuid": UUID} - update := bson.M{"$set": bson.M{"value": value, "createTime": time.Now().Unix()}} + update := bson.M{"$set": bson.M{"value": value}} _, err := collection.UpdateOne(ctx, filter, update) return err