From 99f6752590e99dfd3472d281fdb5912c799587e3 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 6 May 2022 16:51:59 +0800 Subject: [PATCH] office --- pkg/common/db/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/db/model.go b/pkg/common/db/model.go index 35c7782b2..364395639 100644 --- a/pkg/common/db/model.go +++ b/pkg/common/db/model.go @@ -206,7 +206,7 @@ func init() { //if err != nil { // fmt.Println("mongodb create cTagModel2 failed", result, err.Error()) //} - result, err = dataBase.Collection(cTag).Indexes().CreateOne(context.Background(), mongo.IndexModel{ + _, err = dataBase.Collection(cTag).Indexes().CreateOne(context.Background(), mongo.IndexModel{ Keys: bson.D{ {Key: "user_id"}, {Key: "create_time", Value: -1},